/* Heritage Clean Edition (V117): one design system for every server-rendered page.
   Loaded after site.css (component library) and the Heritage flow sheets; repaints every component in the
   Heritage ivory / navy / gold palette used by the public storefront pages. */
body.heritage{
  --bg:#f7f2e8;--surface:#fffaf1;--paper:#fffaf1;--paper-2:#fffdf8;--white:#fffaf1;--ink:#142c42;--ink-2:#1f3a55;--ink-3:#0f2234;
  --text:#142c42;--text-2:#405365;--muted:#5b6974;--line:#d8c6a4;--line-2:#c5af7b;--line-dark:#d8c6a4;--line-dark-2:#c5af7b;
  --rule:#b39555;--gold:#b39555;--gold-2:#927440;--accent:#927440;
  background:#f7f2e8;color:#142c42;font-family:Inter,Arial,sans-serif;cursor:auto;min-height:100vh;display:flex;flex-direction:column
}
body.heritage main#main{flex:1 0 auto}
body.heritage h1,body.heritage h2,body.heritage h3,body.heritage .display{font-family:Georgia,"Times New Roman",serif;color:#142c42;text-transform:none;letter-spacing:normal;font-weight:400}
body.heritage a{color:#775b2d}
body.heritage .skip{position:absolute;left:-999px;top:0;background:#142c42;color:#fffaf1;padding:8px 12px;z-index:2000}
body.heritage .skip:focus{left:8px}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Header */
.hl-header{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:14px clamp(18px,4vw,64px);background:#fffaf1;border-bottom:1px solid #d8c6a4;position:relative;z-index:50}
.hl-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#142c42!important}
.hl-brand img{width:54px;height:54px;object-fit:contain}
.hl-brand strong{display:block;font:400 20px/1.1 Georgia,serif;letter-spacing:.04em;color:#142c42}
.hl-brand small{display:block;font:600 10px/1.4 Inter,Arial,sans-serif;letter-spacing:.32em;color:#a07b3e}
.hl-nav{display:flex;align-items:center;flex-wrap:wrap;gap:6px 22px}
.hl-nav>a,.hl-linkbtn{font:15px/1.4 Georgia,serif;color:#142c42!important;text-decoration:none;padding:6px 0;border-bottom:1px solid transparent;background:none;border-top:0;border-left:0;border-right:0;cursor:pointer}
.hl-nav>a:hover,.hl-nav>a:focus-visible,.hl-linkbtn:hover{border-bottom-color:#b39555}
.hl-inline{display:inline;margin:0}
.hl-lang select{font:14px Inter,Arial,sans-serif;color:#142c42;background:#fffdf8;border:1px solid #c5af7b;border-radius:7px;padding:6px 8px;min-height:36px}
.hl-nav-toggle{display:none;background:#142c42;color:#fffaf1;border:1px solid #b39555;border-radius:8px;padding:8px 14px;font:600 14px Inter,Arial,sans-serif}
.heritage-currency{position:relative;align-self:center;color:#142c42;white-space:nowrap}
.heritage-currency summary{cursor:pointer;list-style:none;padding:8px;font-weight:600;min-height:24px}
.heritage-currency summary::-webkit-details-marker{display:none}
.heritage-currency>div{position:absolute;right:0;top:100%;z-index:1000;background:#fffaf1;border:1px solid #d5c4a5;min-width:110px;box-shadow:0 4px 12px #0002}
.heritage-currency a{display:block!important;padding:10px 12px!important;color:#142b40!important;text-decoration:none}
.heritage-currency a[aria-current]{font-weight:bold}
@media(max-width:820px){
  .hl-nav-toggle{display:inline-block}
  .hl-nav{display:none;width:100%;flex-direction:column;align-items:flex-start;padding:8px 0 4px}
  .hl-header.open .hl-nav{display:flex}
  .hl-nav>a{font-size:17px;padding:8px 0}
}

/* Flash messages */
body.heritage .flashes{max-width:1120px;margin:18px auto 0;padding:0 20px}
body.heritage .flash{background:#fffaf1;border:1px solid #d8c6a4;color:#142c42;border-radius:8px;padding:12px 16px;margin:0 0 8px}
body.heritage .flash-error{color:#842525;background:#f9e9e5;border-color:#c78e83}
body.heritage .flash-success{color:#1f5131;background:#edf6ee;border-color:#9fc5a6}

/* Components from site.css, repainted */
body.heritage .card,body.heritage .soft,body.heritage .note,body.heritage .panel{background:#fffaf1;color:#142c42;border:1px solid #d8c6a4;box-shadow:0 8px 24px #142c420b}
body.heritage .btn,body.heritage .btn-dark,body.heritage button.btn{background:#142c42;color:#fffaf1;border:1px solid #b39555;border-radius:9px;min-height:44px}
body.heritage .btn-line,body.heritage .btn-light{background:#fffaf1;color:#142c42;border:1px solid #b39555}
body.heritage input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body.heritage select,body.heritage textarea{background:#fffdf8;color:#142c42;border:1px solid #bba77e;border-radius:7px}
body.heritage table.data{background:#fffaf1;color:#142c42;border-collapse:collapse;width:100%}
body.heritage table.data th{background:#efe5d2;color:#142c42;text-align:left}
body.heritage table.data td,body.heritage table.data th{border-bottom:1px solid #e3d5ba;padding:8px 10px}
body.heritage .muted,body.heritage .small.muted{color:#5b6974}
body.heritage .eyebrow{color:#a07b3e;letter-spacing:.18em;text-transform:uppercase;font-size:12px}
body.heritage .pill{background:#efe5d2;color:#142c42;border:1px solid #d8c6a4}
body.heritage .wrap{max-width:1120px;margin:0 auto;padding-left:20px;padding-right:20px}
.hl-page{max-width:860px;margin:0 auto;padding:48px 20px 72px}
.hl-page h1{font-size:clamp(32px,4vw,48px);margin:0 0 12px}
.hl-page .lead{font-size:18px;color:#405365}
.hl-faq details{background:#fffaf1;border:1px solid #d8c6a4;border-radius:8px;padding:14px 16px;margin:0 0 10px}
.hl-faq summary{cursor:pointer;font-weight:600}
.hl-form .field{margin:0 0 14px}.hl-form label{display:block;font-weight:600;margin:0 0 6px}
.hl-form input:not([type=checkbox]),.hl-form select,.hl-form textarea{width:100%;box-sizing:border-box;min-height:46px;padding:10px 12px;font:inherit}
.hl-legal nav{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0 0 28px}
.hl-legal section{margin:0 0 40px}.hl-legal h2{font-size:28px;margin:36px 0 10px}.hl-legal h3{font-size:19px;margin:22px 0 6px}
.hl-legal table{border-collapse:collapse}.hl-legal td{padding:6px 14px 6px 0;vertical-align:top}

/* Footer */
.hl-footer{background:#f2e9d8;border-top:1px solid #c5af7b;color:#142c42;margin-top:auto}
.hl-footer-inner{display:flex;flex-wrap:wrap;gap:32px 64px;justify-content:space-between;padding:32px clamp(18px,5vw,80px)}
.hl-footer-brand{display:flex;align-items:center;gap:22px;max-width:520px}
.hl-footer-brand img{width:clamp(110px,10vw,150px);height:auto}
.hl-footer-brand p{font:clamp(20px,2vw,28px)/1.25 Georgia,serif;margin:0;color:#142c42}
.hl-footer-links{display:flex;gap:clamp(28px,5vw,80px);flex-wrap:wrap}
.hl-footer-links b{display:block;font:15px Georgia,serif;color:#a07b3e;margin:0 0 10px}
.hl-footer-links a{display:block;color:#142c42!important;text-decoration:none;padding:5px 0;min-height:24px;font-size:14px}
.hl-footer-links a:hover{text-decoration:underline}
.hl-footer-bottom{display:flex;flex-wrap:wrap;gap:10px 24px;align-items:center;justify-content:space-between;padding:14px clamp(18px,5vw,80px);border-top:1px solid #d8c6a4;font-size:13px}
.hl-footer-bottom a{color:#142c42!important;min-height:24px;display:inline-flex;align-items:center}

/* Administration */
body.heritage-admin main#main{padding:24px clamp(14px,3vw,40px) 60px}
body.heritage-admin .admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
body.heritage-admin .stat{background:#fffaf1;border:1px solid #d8c6a4;border-radius:8px;padding:14px}
body.heritage-admin .stat b{display:block;font:28px Georgia,serif}

@media print{.hl-header,.hl-footer,.flashes{display:none!important}body.heritage{background:#fff}}

/* V117 access pages */
.hl-page.hl-narrow{max-width:640px}
.hl-list{list-style:none;padding:0;margin:8px 0 18px}
.hl-list li{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #e3d5ba}
.hl-purchase h2 small{font:13px Inter,Arial,sans-serif}
.mt-24{margin-top:24px}

/* V117 administration (Heritage palette) */
.hl-admin{max-width:1320px;margin:0 auto;padding:32px 20px 80px}
.hl-admin-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}
.hl-admin-head h1{margin:0}
.hl-admin-period a{margin-left:14px}
.hl-admin-queue{display:flex;flex-wrap:wrap;gap:6px 22px;margin:18px 0;padding:12px 16px;border-radius:8px;border:1px solid #d8c6a4;background:#fffaf1;font-size:14px}
.hl-admin-queue.is-stalled{border-color:#c78e83;background:#f9e9e5;color:#842525}
.hl-admin-queue.is-ok strong{color:#1f5131}
.hl-admin-warn ul{margin:6px 0 0;padding-left:18px}
.hl-kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;margin:18px 0}
.hl-kpi{background:#fffaf1;border:1px solid #d8c6a4;border-radius:8px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.hl-kpi span{font-size:13px;color:#5b6974}.hl-kpi b{font:400 24px Georgia,serif;color:#142c42}.hl-kpi small{font-size:12px;color:#5b6974}
.hl-admin-records{padding:0;margin-top:20px;overflow:hidden}
.hl-tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid #d8c6a4;padding:8px 10px 0;background:#efe5d2}
.hl-tabs a{padding:9px 12px;text-decoration:none;color:#142c42!important;border-radius:6px 6px 0 0}
.hl-tabs a[aria-current]{background:#fffaf1;border:1px solid #d8c6a4;border-bottom-color:#fffaf1;margin-bottom:-1px;font-weight:600}
.hl-admin-search{display:flex;gap:8px;padding:12px 16px;border-bottom:1px solid #e3d5ba}
.hl-admin-search input[type=search]{max-width:360px}
.hl-admin-gift{display:grid;gap:8px;max-width:34rem;text-align:left;padding:16px}
.admin-table caption{caption-side:top;text-align:left;padding:10px 12px}
.admin-table .inline-form{display:inline}
.admin-table button{font:13px Inter,Arial,sans-serif;background:#fffaf1;border:1px solid #b39555;border-radius:6px;padding:4px 8px;color:#142c42;cursor:pointer}
.table-wrap{overflow-x:auto}
.hl-links{display:inline-flex;gap:18px}
