/* divinemalteses.com site chrome: menu, phone floater, responsive layer, buttons,
   FAQ and puppy cards. Linked on every page. The page theme (colours, fonts) is in
   divine.css on the pages that use it; legacy pages keep their own colours. */

.btn { display: inline-block; padding: 8px 18px; background: #9F81C3; color: #000000; border: 0; font: inherit;
  font-weight: bold; cursor: pointer; text-decoration: none; }
.btn--ghost { background: transparent; color: #CFABEB; border: 1px solid #9F81C3; }
.btn--small { padding: 4px 10px; font-size: 0.9em; }

/* Top menu, call bar and state CTA, added October 2026 */
body { padding-bottom: 70px; }
.statecta { margin: 10px auto 16px auto; border: 1px solid #9F81C3; background: #0b0718; }
.statecta td { color: #FFFFFF; font-family: "Trebuchet MS", Arial, Tahoma, Verdana; font-size: 15px; font-weight: 600; }
.statecta__text { max-width: 460px; margin: 0 auto; }
.statecta__text p { margin: 8px 0; }
.statecta .btn { margin: 4px 0; }


/* Site navigation, designed October 2026. Black ground, lavender text, white on hover,
   the site's own palette. Dropdowns on hover; burger below 860px. */
.dm-nav { background: #07040f; border-bottom: 2px solid #9F81C3; box-shadow: 0 2px 12px rgba(0,0,0,.6);
  font-family: "Trebuchet MS", Arial, Tahoma, Verdana; position: relative; z-index: 900; margin: -5px -5px 10px -5px; }
.dm-nav__inner { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 16px; }
.dm-nav__brand { color: #FFFFFF; text-decoration: none; font-size: 22px; font-weight: 700; letter-spacing: .5px; line-height: 1.05; white-space: nowrap; }
.dm-nav__brand span { display: block; font-size: 11px; font-weight: 600; color: #B9A3D6; letter-spacing: 1.6px; text-transform: uppercase; margin-top: 3px; }
.dm-nav__brand:hover { color: #CFABEB; }
.dm-nav__toggle, .dm-nav__burger { display: none; }
.dm-nav__menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.dm-nav__menu > li { position: relative; }
.dm-nav__menu > li > a { display: block; padding: 20px 13px; color: #CFABEB; text-decoration: none; font-size: 13px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; }
.dm-nav__menu > li > a:hover, .dm-nav__menu > li:hover > a { color: #FFFFFF; border-bottom-color: #9F81C3; }
.dm-nav__menu > li > a.is-active, .dm-nav__menu > li.is-open > a { color: #FFFFFF; border-bottom-color: #CFABEB; }
.caret { display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin: 0 0 3px 7px; opacity: .8; }
.dm-nav__menu > li > ul { position: absolute; left: 0; top: 100%; min-width: 250px; margin: 0; padding: 8px 0; list-style: none;
  background: #140c24; border: 1px solid #9F81C3; border-top: 3px solid #CFABEB; box-shadow: 0 10px 24px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.dm-nav__menu > li:hover > ul, .dm-nav__menu > li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.dm-nav__menu > li > ul > li > a { display: block; padding: 9px 18px; color: #E6DAF5; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.dm-nav__menu > li > ul > li > a:hover { background: #3b2a55; color: #FFFFFF; }
.dm-nav__menu > li > ul > li > a.is-active { color: #FFFFFF; background: #2a1d40; border-left: 3px solid #CFABEB; padding-left: 15px; }
.dm-nav__cta { margin-left: 10px; }
.dm-nav__menu > li.dm-nav__cta > a { background: #9F81C3; color: #07040f; border-radius: 3px; padding: 10px 16px; margin: 10px 0; border-bottom: 0; }
.dm-nav__menu > li.dm-nav__cta > a:hover { background: #CFABEB; color: #07040f; }
@media (max-width: 860px) {
  .dm-nav__inner { flex-wrap: wrap; min-height: 54px; }
  .dm-nav__burger { display: block; width: 34px; height: 26px; position: relative; cursor: pointer; }
  .dm-nav__burger span { position: absolute; left: 4px; right: 4px; height: 3px; background: #CFABEB; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .dm-nav__burger span:nth-child(1) { top: 3px; } .dm-nav__burger span:nth-child(2) { top: 11px; } .dm-nav__burger span:nth-child(3) { top: 19px; }
  .dm-nav__toggle:checked ~ .dm-nav__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .dm-nav__toggle:checked ~ .dm-nav__burger span:nth-child(2) { opacity: 0; }
  .dm-nav__toggle:checked ~ .dm-nav__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .dm-nav__menu { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 6px 0 12px 0; }
  .dm-nav__toggle:checked ~ .dm-nav__menu { display: flex; }
  .dm-nav__menu > li > a { padding: 12px 8px; border-bottom: 1px solid #2a1d40; }
  .dm-nav__menu > li > ul { position: static; opacity: 1; visibility: visible; transform: none; border: 0; border-left: 2px solid #9F81C3; box-shadow: none; margin: 0 0 6px 10px; padding: 0; min-width: 0; background: transparent; }
  .dm-nav__menu > li.dm-nav__cta > a { text-align: center; margin: 12px 8px 0 8px; }
}


/* Phone floater: the Prestigious Purr pinned box, in this site's colours. Black box,
   1px border, soft shadow, pinned to the bottom centre of the screen. */
.floater { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 1000;
  width: 384px; max-width: calc(100% - 24px); box-sizing: border-box; padding: 10px 14px;
  background: #000000; border: 1px solid #9F81C3; border-bottom: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.6);
  text-align: center; font-family: "Trebuchet MS", Arial, Tahoma, Verdana; }
.floater a { color: #FFFFFF; font-size: 25px; line-height: normal; font-weight: bold; text-decoration: underline; white-space: nowrap; }
.floater a:hover { color: #CFABEB; }
@media (max-width: 440px) { .floater a { font-size: 20px; } }


/* Responsive layer, October 2026. The site was built on 740px tables; this lets them
   shrink on a phone without changing how they look at desktop width. */
html { -webkit-text-size-adjust: 100%; }
img, video, embed { max-width: 100%; height: auto; }
/* inside an auto-width table cell, max-width:100% collapses the cell and the photo with it */
td img { max-width: none; }
table[width="740"], table[width="750"], table[width="760"], table[width="770"], table[width="800"], .related, .sitemenu, .statecta { width: 100% !important; max-width: 740px; }
center > table, body > table { max-width: 100%; }
table { max-width: 100%; }
td { word-wrap: break-word; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #9F81C3; color: #000; padding: 8px 12px; z-index: 2000; font-weight: 700; }
.skip-link:focus { left: 8px; top: 8px; }
@media (max-width: 760px) {
  body { margin: 0; }
  .dm-nav { margin: 0 0 10px 0; }
  .sitetitle { font-size: 1.4em; padding: 0 10px; }
  img[width="753"], img[width="800"], img[width="750"], img[width="762"], img[width="712"], img[width="694"] { width: 100%; height: auto; }
  td img { max-width: 100%; }
  .statecta td { display: block; width: auto !important; }
  .statecta__text { max-width: none; }
}

/* FAQ blocks */
.faq { margin-top: 18px; border-top: 1px solid #9F81C3; padding-top: 6px; }
.faq h3 { color: #CFABEB; font-size: 17px; margin: 14px 0 4px 0; }
.faq p { margin-top: 0; }

/* Reserved badge, applied by /scripts/status.js from /status.json */
.reserved-badge { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #9F81C3; color: #07040f; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; vertical-align: middle; }
.is-reserved img { opacity: .75; }

/* Reserve / Ask buttons under each puppy */
.pup-cta { margin: 10px 0 4px 0; }
.pup-cta .btn { margin: 2px 4px 2px 0; }
.btn--sm { padding: 5px 11px; font-size: 13px; }
.btn--reserved { background: #3b2a55; color: #B9A3D6; cursor: default; }

/* links styled as buttons: beat the site-wide a:link colour */
a.btn, a.btn:link, a.btn:visited { color: #000000 !important; background: #9F81C3 !important; text-decoration: none !important; }
a.btn:hover, a.btn:active { color: #000000 !important; background: #CFABEB !important; }
a.btn--ghost, a.btn--ghost:link, a.btn--ghost:visited { color: #CFABEB; background: transparent; border: 1px solid #9F81C3; }
a.btn--ghost:hover, a.btn--ghost:active { color: #FFFFFF; background: #3b2a55; }
.btn--reserved, span.btn--reserved { background: #3b2a55; color: #B9A3D6; }

/* homepage puppy grid: name and details sit under each photograph */
.pup-grid td { padding: 6px 4px 14px 4px; }
.pup-name { margin: 8px 0 2px 0; font-size: 16px; line-height: 1.4; }
.pup-name b { font-size: 19px; }
.pup-grid .pup-cta { margin-top: 4px; }

/* phones: every puppy photo keeps its own name directly beneath it */
@media (max-width: 760px) {
  .pup-card td, .pup-grid td { display: block; width: auto !important; text-align: center; }
  .pup-card h3 { margin-top: 6px; }
}

/* phones: the 740px layout tables stack one cell under another, so nothing is wider
   than the screen. Tables with a header row (pedigrees, drive times) stay tables and
   scroll sideways inside their own box instead. */
@media (max-width: 760px) {
  table:not(:has(> tbody > tr > th, > thead > tr > th)) > tbody > tr > td { display: block; width: auto !important; max-width: 100%; box-sizing: border-box; }
  table:has(> tbody > tr > th, > thead > tr > th) { display: block; overflow-x: auto; max-width: 100%; }
  td img { max-width: 100%; height: auto; }
  body { overflow-x: hidden; }
}

/* the decorative rows of asterisks are one unbreakable string, which on a phone set the
   minimum width of every table they sit in. They are clipped to the screen instead. */
@media (max-width: 760px) {
  td.star { overflow: hidden; white-space: nowrap; contain: inline-size; }
  a[href^="mailto:"] { overflow-wrap: anywhere; }
}

/* drive-time tables on the state pages: the cells had no colour of their own, which on a
   black page meant black text. Site palette: white figures, lavender headings and rules. */
.drive { border-collapse: collapse; }
.drive th, .drive td { color: #FFFFFF; border: 1px solid #9F81C3; padding: 6px 10px; font-family: "Trebuchet MS", Arial, Tahoma, Verdana; font-size: 15px; }
.drive th { color: #CFABEB; background: #0b0718; }
