/*
 * The 2026 design's header, for the pages that still load site.css.
 *
 * The home and franchise pages get this header from their own stylesheet.
 * These rules put the same header on every other page without importing the
 * design wholesale: every rule is scoped under .topline or .header, and the
 * variables it needs are declared there rather than on :root, so site.css's
 * own --paper, --line and --ink are untouched below the header.
 *
 * The design's rules use container queries against .site, which only exists
 * on the design pages, so the responsive steps here are media queries.
 */
.topline, .header {
  --d-paper:#fbfaf6;
  --d-line:#d8dfda;
  --d-ink:#123c3e;
  --d-teal:#087b80;
  --d-serif:Georgia,'Times New Roman',serif;
  --d-sans:Arial,Helvetica,sans-serif;
}

.topline{
  font-size:11px;background:#eef3ee;border-bottom:1px solid var(--d-line);
  text-align:center;padding:7px 20px;letter-spacing:.8px;color:var(--d-ink);
}

.header{background:var(--d-paper);border-bottom:1px solid var(--d-line)}
.header .wrap{width:calc(100% - 112px);max-width:1240px;margin:auto}
.header .nav{height:94px;display:flex;align-items:center;gap:28px}

.header .brand{margin-right:auto;display:flex;align-items:center;text-decoration:none;gap:12px;flex:none}
.header .brand img{width:73px;height:73px;object-fit:contain}
.header .brand span{font:italic 25px var(--d-serif);color:var(--d-ink)}

.header .navlinks{display:flex;align-items:center;gap:25px;font-size:13px;font-family:var(--d-sans)}
/*
 * Every one of these is declared rather than inherited. site.css styles
 * ".nav a" directly, and a directly-matching declaration beats an inherited
 * value however specific the ancestor rule is — which is why the links came
 * out at site.css's .94rem instead of the design's 13px.
 */
.header .navlinks a{
  font-family:var(--d-sans);
  font-size:13px;
  font-weight:400;
  line-height:1.6;
  letter-spacing:normal;
  text-transform:none;
  color:var(--d-ink);
  text-decoration:none;
  padding:0;
  margin:0;
  position:static;
}
.header .navlinks a:hover{text-decoration:underline;text-underline-offset:5px;color:var(--d-ink)}
.header .navlinks a::after,.header .navlinks a::before{content:none;display:none}
.header .brand,.header .brand span,.header .btn{font-family:var(--d-sans)}
.header .brand span{font-family:var(--d-serif)}

/* The design's button, so the call to action matches the two design pages. */
.header .btn{
  display:inline-flex;justify-content:center;align-items:center;gap:22px;
  border:1px solid var(--d-teal);background:var(--d-teal);color:#fff;
  text-decoration:none;padding:12px 18px;font-size:13px;font-weight:600;
  border-radius:3px;line-height:1.45;min-height:0;box-shadow:none;
}
.header .btn:hover{background:#075c61;color:#fff}

.header .menu{
  display:none;border:1px solid #bacac0;background:transparent;border-radius:3px;
  padding:8px 10px;font-size:15px;color:var(--d-ink);cursor:pointer;
}

@media(max-width:1000px){
  .header .wrap{width:calc(100% - 64px)}
  .header .navlinks{gap:15px}
  .header .nav{gap:18px}
  .header .brand span{display:none}
}

@media(max-width:760px){
  .header .wrap{width:calc(100% - 40px)}
  .topline{font-size:9px}
  .header .nav{height:76px;gap:12px;position:relative}
  .header .brand img{width:60px;height:60px}
  .header .nav > .btn{margin-left:auto;font-size:11px;padding:10px 12px}
  .header .menu{display:block}
  .header .navlinks{
    display:none;position:absolute;top:76px;left:-20px;right:-20px;
    background:var(--d-paper);padding:20px;z-index:10;border-bottom:1px solid var(--d-line);
  }
  .header .navlinks.open{display:grid;grid-template-columns:1fr 1fr;gap:18px}
}

/* --- the header follows the page ---------------------------------------
   top is offset for the admin bar, which is fixed for signed-in users and
   would otherwise sit over the header. 782px is WordPress's own breakpoint,
   below which its bar is 46px tall and not fixed while scrolling. */
.header{position:sticky;top:0;z-index:80}
.admin-bar .header{top:32px}
@media screen and (max-width:782px){
  .admin-bar .header{top:0}
}
