/**
 * Small WordPress compatibility fixes (does not change FinGlossy design).
 */

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
}

#layout-header > .container,
#layout-header .container {
  width: 100%;
}

#layout-header .row {
  margin-left: 0;
  margin-right: 0;
}

/* WP admin bar offset */
body.admin-bar #layout-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar #layout-header {
    top: 46px;
  }
}

/* Header logos: keep within 100px bar (do not use height:auto — overrides theme) */
#layout-header {
  overflow: hidden;
}

#layout-header .home-link img {
  width: 60px;
  height: 60px;
  max-width: 60px;
  object-fit: contain;
}

#layout-header .b-logo img {
  height: 40px !important;
  width: auto !important;
  max-height: 40px;
  max-width: 160px;
  object-fit: contain;
}

#layout-header .b-logo a:nth-of-type(3) img {
  height: 32px !important;
  max-height: 32px;
}

.b-options_item__icon svg {
  max-width: 42px;
  max-height: 42px;
  width: 42px;
  height: 42px;
}

/* Home options screen: keep card visible in viewport */
body.home #layout-content {
  overflow: visible;
  padding-bottom: 0;
}

body.home #gloss {
  min-height: calc(100vh - 100px);
  height: auto;
  margin-top: 0;
  margin-bottom: 0;
  padding: 40px 16px;
  box-sizing: border-box;
}

body.home #gloss .b-gloss_child {
  max-width: 720px;
  width: 100%;
  box-sizing: border-box;
}

body.home .b-options h1 {
  text-align: center;
}

body.home .btn-glossy {
  display: block;
  margin: 0 auto;
  text-align: center;
  max-width: 200px;
  border: none;
  color: #fff;
  text-decoration: none;
}
