/* Policy pages, desktop shell footer, mobile side drawer, bag drawer, account profile, and contact page. */
.opium-policy-page{background:var(--paper);color:var(--ink);padding:0;display:block}
.opium-policy{max-width:800px;margin:0 auto;padding:clamp(36px,6vw,80px) clamp(20px,4vw,48px) 48px;overflow-wrap:anywhere}
.opium-policy-header{margin:0 0 40px;padding-bottom:28px;border-bottom:1px solid var(--line)}
.opium-policy .opium-policy-eyebrow{margin:0 0 16px;font-size:10px;font-weight:600;line-height:1.5;letter-spacing:.14em;text-transform:uppercase;color:var(--muted,#686c69)}
.opium-policy h1{margin:0 0 18px;font-size:clamp(32px,4.4vw,52px);font-weight:600;line-height:1.08;letter-spacing:-.04em;text-wrap:balance}
.opium-policy .opium-policy-date{margin:0;font-size:12px;line-height:1.7;color:var(--muted,#686c69)}
.opium-policy h2{margin:40px 0 16px;font-size:clamp(21px,2.3vw,26px);font-weight:600;line-height:1.3;letter-spacing:-.025em;text-wrap:balance}
.opium-policy h3{margin:28px 0 12px;font-size:18px;font-weight:600;line-height:1.4;letter-spacing:-.015em}
.opium-policy p,.opium-policy li{font-size:16px;line-height:1.8;letter-spacing:0;color:var(--ink)}
.opium-policy p{margin:0 0 18px;max-width:none}
.opium-policy ul,.opium-policy ol{padding-left:24px;margin:16px 0 24px}
.opium-policy li{padding-left:4px;margin:10px 0}
.opium-policy strong{font-weight:600}
.opium-policy a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;overflow-wrap:anywhere}
.opium-policy a:hover{color:var(--red)}
.opium-policy code{font-size:.88em;background:var(--surface,#eae8e1);border:1px solid var(--line);padding:2px 5px;border-radius:3px;overflow-wrap:anywhere}
.opium-policy a:focus-visible{outline:2px solid var(--red);outline-offset:4px;border-radius:2px}
@media(max-width:760px){
 .opium-policy{padding-top:32px;padding-bottom:36px}
 .opium-policy-header{margin-bottom:28px;padding-bottom:24px}
 .opium-policy h2{margin-top:32px}
}
#team-workspace .small-copy a[href="/terms"],#team-workspace .small-copy a[href="/privacy"],#team-workspace a[href="/terms"],#team-workspace a[href="/shipping-returns"]{text-decoration:underline;text-underline-offset:3px}

/* Coming-soon placeholder policy pages (in the spirit of 404.html, inside the app shell). */
.opium-policy-soon-page:not([hidden]){
 display:flex;
 flex-direction:column;
 justify-content:center;
 min-height:100%;
 background:var(--paper);
 color:var(--ink);
 --policy-ghost:#e5e5df;
}
:root[data-theme=dark] .opium-policy-soon-page{
 --policy-ghost:#25292c;
}
.opium-policy.opium-policy-soon{
 width:100%;
 max-width:1280px;
 margin:auto;
 padding:clamp(32px,6vh,72px) clamp(20px,5.5vw,88px) clamp(48px,7vh,84px);
}
.policy-soon-shell{
 display:grid;
 grid-template-columns:minmax(0,1.15fr) minmax(240px,.85fr);
 align-items:center;
 gap:clamp(28px,5vw,64px);
}
.policy-soon-copy{
 min-width:0;
 display:flex;
 flex-direction:column;
 align-items:flex-start;
}
.opium-policy-soon .policy-soon-eyebrow{
 margin:0 0 22px;
 font-size:11px;
 font-weight:600;
 letter-spacing:.15em;
 line-height:1.4;
 text-transform:uppercase;
 color:var(--muted,#686c69);
 display:inline-flex;
 align-items:center;
 gap:12px;
}
.opium-policy-soon .policy-soon-eyebrow::before{
 content:"";
 display:inline-block;
 width:20px;
 height:2px;
 background:var(--red);
 flex:none;
}
.opium-policy-soon h1{
 margin:0 0 18px;
 font-size:clamp(36px,4.5vw,62px);
 font-weight:500;
 letter-spacing:-.045em;
 line-height:1.06;
 text-wrap:balance;
}
.opium-policy-soon .policy-soon-description{
 margin:0 0 24px;
 font-size:15px;
 line-height:1.7;
 color:var(--muted,#686c69);
 max-width:48ch;
}
.policy-soon-card{
 width:100%;
 max-width:460px;
 margin:0 0 24px;
}
.opium-policy-soon .policy-soon-card p{
 margin:0;
}
.opium-policy-soon .policy-soon-card .contact-card-eyebrow{
 font-size:10px;
 line-height:1.4;
 color:var(--muted,#686c69);
}
.opium-policy-soon .policy-soon-card .contact-address{
 font-size:17px;
 line-height:1.35;
 color:var(--ink);
}
.opium-policy-soon .policy-soon-card .contact-card-note{
 font-size:13px;
 line-height:1.55;
 color:var(--muted,#686c69);
}
.opium-policy-soon .policy-soon-card .contact-mailto{
 text-decoration:none;
}
.opium-policy-soon .policy-soon-card .contact-mailto:hover{
 color:var(--ink);
}
.policy-soon-actions{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:12px;
}
.opium-policy-soon .policy-soon-primary{
 min-height:48px;
 padding:13px 20px;
 gap:26px;
 text-decoration:none;
 color:var(--paper);
 border:1px solid var(--ink);
}
:root[data-theme=dark] .opium-policy-soon .policy-soon-primary{
 color:#17191b;
 border-color:#eeeee9;
}
.opium-policy-soon .policy-soon-primary:hover{
 color:var(--paper);
 border-color:var(--red);
}
:root[data-theme=dark] .opium-policy-soon .policy-soon-primary:hover{
 color:#17191b;
 border-color:#d6d9d6;
}
.opium-policy-soon .policy-soon-secondary{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 min-height:48px;
 padding:13px 20px;
 border:1px solid var(--ink);
 font-size:12px;
 font-weight:500;
 line-height:1.2;
 text-decoration:none;
 color:var(--ink);
 transition:border-color .15s,color .15s;
}
.opium-policy-soon .policy-soon-secondary:hover{
 border-color:var(--red);
 color:var(--red);
}
.policy-soon-art{
 display:flex;
 flex-direction:column;
 align-items:flex-end;
 justify-content:center;
 gap:12px;
 user-select:none;
 text-align:right;
 min-width:0;
}
.policy-soon-ghost{
 display:block;
 font-size:clamp(76px,11vw,156px);
 font-weight:500;
 letter-spacing:-.07em;
 line-height:.92;
 white-space:nowrap;
 overflow-wrap:normal;
 color:var(--policy-ghost);
}
.policy-soon-tag{
 font-size:10px;
 font-weight:600;
 letter-spacing:.14em;
 text-transform:uppercase;
 color:var(--muted,#686c69);
}
@media(max-width:860px){
 .opium-policy-soon-page:not([hidden]){
  justify-content:flex-start;
 }
 .policy-soon-shell{
  grid-template-columns:1fr;
  gap:24px;
 }
 .policy-soon-art{
  grid-row:1;
  align-items:flex-start;
  text-align:left;
  gap:6px;
 }
 .policy-soon-ghost{
  font-size:clamp(68px,20vw,124px);
 }
}
@media(max-width:760px){
 .opium-policy.opium-policy-soon{
  padding:24px 20px 88px;
 }
 .opium-policy-soon .policy-soon-eyebrow{
  margin-bottom:14px;
  font-size:10px;
 }
 .opium-policy-soon h1{
  font-size:clamp(32px,9vw,44px);
 }
 .policy-soon-actions{
  width:100%;
 }
 .opium-policy-soon .policy-soon-primary,
 .opium-policy-soon .policy-soon-secondary{
  flex:1 1 auto;
  justify-content:space-between;
 }
 .opium-policy-soon .policy-soon-secondary{
  justify-content:center;
 }
}

/* Desktop shell footer (>760px): always visible bottom row, consistent with header. */
@media(min-width:761px) and (not ((pointer:coarse) and (max-height:500px) and (max-width:1000px))){
 body{grid-template-rows:86px minmax(0,1fr) 36px}
 body>footer.site-footer{display:flex!important;align-items:center;justify-content:space-between;gap:24px;height:36px;min-height:0;padding:0 5.5%;border-top:1px solid var(--line);background:var(--paper);color:var(--muted,#686c69);font-size:11px;line-height:1;letter-spacing:0;z-index:8}
 body>footer.site-footer .footer-copy{font-size:11px;font-weight:500;letter-spacing:.04em;color:var(--muted,#686c69)}
 body>footer.site-footer .footer-nav{display:flex;align-items:center;gap:0;font-size:11px;letter-spacing:0;font-weight:500}
 body>footer.site-footer .footer-nav a{position:relative;display:inline-flex;align-items:center;padding:8px 0;color:var(--muted,#686c69);text-decoration:none;transition:color .18s}
 body>footer.site-footer .footer-nav a+a::before{content:"·";margin:0 10px;color:var(--muted,#686c69);opacity:.55;pointer-events:none;text-decoration:none}
 body>footer.site-footer .footer-nav a::after{display:none!important}
 body>footer.site-footer .footer-nav a:hover,body>footer.site-footer .footer-nav a[aria-current="page"]{color:var(--ink)}
 body>footer.site-footer .footer-nav a[aria-current="page"]{text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--red)}
 body>footer.site-footer .footer-nav a:focus-visible{outline:2px solid var(--red);outline-offset:2px;border-radius:2px}
 .page,.template-section,.team{min-height:0}
 .hero{min-height:0}
}
@media(max-height:700px) and (min-width:761px) and (not ((pointer:coarse) and (max-height:500px) and (max-width:1000px))){
 body{grid-template-rows:68px minmax(0,1fr) 32px}
 body>footer.site-footer{height:32px}
}
@media(min-width:1100px){
 body[data-page=studio] .editor{max-height:calc(100dvh - 256px)}
}

/* Header account button (avatar image, initials on neutral circle, or signed-out icon). */
.header-account{
 display:inline-grid;
 place-items:center;
 width:40px;
 height:40px;
 border:1px solid var(--line);
 border-radius:50%;
 padding:0;
 color:var(--ink);
 background:transparent;
 text-decoration:none;
 overflow:hidden;
 flex-shrink:0;
 position:relative;
 transition:border-color .15s,background-color .15s;
}
.header-account[data-avatar="initials"]{
 background:var(--surface,#eae8e1);
}
:root[data-theme=dark] .header-account[data-avatar="initials"]{
 background:var(--surface,#202428);
}
.header-account:hover{
 border-color:var(--ink);
}
.header-account[aria-current="page"]{
 border-color:var(--red);
 box-shadow:0 0 0 1px var(--red);
}
.header-account svg{
 width:18px;
 height:18px;
 fill:none;
 stroke:currentColor;
 stroke-width:1.5;
 stroke-linecap:round;
 stroke-linejoin:round;
}
.header-avatar-img{
 display:block;
 width:100%;
 height:100%;
 object-fit:cover;
 border-radius:50%;
}
.header-avatar-initials{
 font-size:12px;
 font-weight:600;
 letter-spacing:.03em;
 line-height:1;
 color:var(--ink);
 text-transform:uppercase;
 user-select:none;
}

/* Bag as a slide-in side drawer (<dialog id="bag">). */
#bag{
 position:fixed;
 top:0;
 right:0;
 bottom:0;
 left:auto;
 margin:0 0 0 auto;
 width:min(420px,100vw);
 max-width:100vw;
 height:100vh;
 height:100dvh;
 max-height:100vh;
 max-height:100dvh;
 padding:22px 24px 24px;
 border:0;
 border-left:1px solid var(--line);
 background:var(--paper);
 color:var(--ink);
 box-shadow:-16px 0 44px rgb(0 0 0 / .16);
 overflow:hidden;
}
#bag[open]{
 display:flex;
 flex-direction:column;
}
#bag::backdrop{
 background:rgb(15 16 16 / .46);
 backdrop-filter:blur(3px);
}
@media(prefers-reduced-motion:no-preference){
 #bag[open]{
  animation:bag-drawer-slide .26s cubic-bezier(.22,1,.36,1);
 }
 #bag[open]::backdrop{
  animation:backdrop-enter .22s ease-out;
 }
}
@keyframes bag-drawer-slide{
 from{transform:translateX(100%);opacity:1}
 to{transform:translateX(0);opacity:1}
}
#bag>header{
 flex-shrink:0;
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 margin:0;
 padding:0 0 16px;
 border-bottom:1px solid var(--line);
}
#bag>header h2{
 margin:0;
 font-size:22px;
 font-weight:600;
 letter-spacing:-.03em;
 line-height:1.15;
}
#bag>header .close{
 display:grid;
 place-items:center;
 width:38px;
 height:38px;
 padding:0;
 border:1px solid var(--line);
 border-radius:50%;
 color:var(--ink);
 background:transparent;
 font-size:20px;
 line-height:1;
 flex-shrink:0;
}
#bag>header .close:hover{
 border-color:var(--ink);
}
#bag-items{
 flex:1 1 auto;
 min-height:0;
 overflow-y:auto;
 overscroll-behavior:contain;
 padding:2px 0;
 display:flex;
 flex-direction:column;
}
#bag .bag-empty{
 margin:auto 0;
 padding:32px 0;
 display:flex;
 flex-direction:column;
 align-items:flex-start;
 gap:12px;
}
#bag .bag-empty h3{
 margin:0;
 font-size:22px;
 font-weight:600;
 letter-spacing:-.03em;
 line-height:1.2;
}
#bag .bag-empty p{
 margin:0;
 font-size:14px;
 line-height:1.65;
 color:var(--muted,#686c69);
}
#bag .bag-empty .button{
 margin:10px 0 0;
 width:100%;
 min-height:46px;
 padding:13px 18px;
}
#bag .bag-item{
 display:grid;
 grid-template-columns:72px minmax(0,1fr) auto;
 gap:14px;
 align-items:start;
 padding:16px 0;
 border-top:0;
 border-bottom:1px solid var(--line);
}
#bag .bag-item:last-child{
 border-bottom:0;
}
#bag .bag-item img{
 width:72px;
 height:88px;
 object-fit:contain;
 background:var(--surface,#e4e0d6);
 border:1px solid var(--line);
 padding:4px;
}
:root[data-theme=dark] #bag .bag-item img{
 background:#2b3035;
}
#bag .bag-item>div{
 min-width:0;
}
#bag .bag-item h3{
 margin:0;
 font-size:14px;
 font-weight:600;
 letter-spacing:-.015em;
 line-height:1.3;
 overflow-wrap:anywhere;
}
#bag .bag-item p{
 margin:5px 0 9px;
 font-size:12px;
 line-height:1.55;
 color:var(--muted,#686c69);
 overflow-wrap:anywhere;
}
#bag .bag-item button{
 font-size:11px;
 font-weight:500;
 letter-spacing:0;
 padding:3px 0;
 text-decoration:underline;
 text-underline-offset:3px;
 color:var(--ink);
}
#bag .bag-item button[data-remove]{
 color:var(--muted,#686c69);
 align-self:start;
}
#bag .bag-item button:hover{
 color:var(--red);
}
#bag #export-bag{
 flex-shrink:0;
 width:100%;
 min-height:46px;
 margin:14px 0 10px;
 padding:13px 18px;
 box-shadow:0 -15px 0 -14px var(--line);
}
#bag>.small-copy{
 flex-shrink:0;
 margin:0;
 font-size:11px;
 line-height:1.5;
 color:var(--muted,#686c69);
}

/* Mobile side menu button & slide-in drawer (≤760px). */
.menu-toggle,#mobile-drawer{display:none}
@media(max-width:760px),(pointer:coarse) and (max-height:500px) and (max-width:1000px){
 body>footer.site-footer{display:none!important}
 .header-account{width:38px;height:38px}
 #bag{
  width:100vw;
  max-width:100vw;
  border-left:0;
  padding:calc(16px + env(safe-area-inset-top,0px)) calc(20px + env(safe-area-inset-right,0px)) calc(22px + env(safe-area-inset-bottom,0px)) calc(20px + env(safe-area-inset-left,0px));
 }
 .menu-toggle{display:grid;place-items:center;width:38px;height:38px;padding:9px;border:1px solid var(--line);border-radius:50%;color:var(--ink);background:transparent;flex-shrink:0}
 .menu-toggle:hover{border-color:var(--ink)}
 .menu-toggle svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;fill:none}
 #mobile-drawer{display:block;position:fixed;inset:0;z-index:30;pointer-events:none;visibility:hidden}
 #mobile-drawer.is-open{pointer-events:auto;visibility:visible}
 .drawer-backdrop{position:absolute;inset:0;background:rgb(15 16 16 / .46);backdrop-filter:blur(3px);opacity:0;transition:opacity .24s cubic-bezier(.22,1,.36,1)}
 #mobile-drawer.is-open .drawer-backdrop{opacity:1}
 .drawer-panel{position:absolute;top:0;right:0;bottom:0;width:min(310px,84vw);max-width:100%;background:var(--paper);color:var(--ink);border-left:1px solid var(--line);box-shadow:-12px 0 36px rgb(0 0 0 / .16);display:flex;flex-direction:column;justify-content:space-between;padding:calc(16px + env(safe-area-inset-top,0px)) calc(20px + env(safe-area-inset-right,0px)) calc(22px + env(safe-area-inset-bottom,0px)) 22px;transform:translateX(100%);transition:transform .26s cubic-bezier(.22,1,.36,1);overflow-y:auto;overscroll-behavior:contain}
 #mobile-drawer.is-open .drawer-panel{transform:translateX(0)}
 .drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}
 .drawer-title{font-size:10px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted,#686c69)}
 .drawer-close{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;color:var(--ink);background:transparent;padding:0}
 .drawer-close:hover{border-color:var(--ink)}
 .drawer-close svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;fill:none}
 .drawer-nav{display:flex;flex-direction:column;gap:2px;margin:14px 0 auto;padding:0}
 .drawer-nav a,.drawer-nav a:first-child{display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:10px 4px;border-bottom:1px solid var(--line);font-size:15px;font-weight:500;letter-spacing:-.01em;color:var(--ink);text-decoration:none}
 .drawer-nav a::after{display:none!important}
 .drawer-nav a svg{width:16px;height:16px;stroke:var(--muted,#686c69);stroke-width:1.5;fill:none;flex:none;transition:transform .2s,stroke .2s}
 .drawer-nav a[aria-current="page"]{color:var(--red);font-weight:600}
 .drawer-nav a[aria-current="page"] svg{stroke:var(--red)}
 .drawer-nav a:hover svg{transform:translateX(2px);stroke:var(--ink)}
 .drawer-foot{margin-top:24px;padding-top:16px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:16px}
 .drawer-theme-btn{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:10px 14px;border:1px solid var(--line);background:var(--surface,#eae8e1);color:var(--ink);font-size:13px;font-weight:500;text-align:left}
 :root[data-theme=dark] .drawer-theme-btn{background:var(--surface,#202428)}
 .drawer-theme-btn:hover{border-color:var(--ink)}
 .drawer-theme-btn span:last-child{font-size:11px;color:var(--muted,#686c69);font-weight:400}
 .drawer-copy{margin:0;font-size:11px;font-weight:500;letter-spacing:.04em;color:var(--muted,#686c69)}
}
@media(max-width:380px){
 .menu-toggle,.header-account{width:34px;height:34px}
 .menu-toggle{padding:8px}
 .header-avatar-initials{font-size:11px}
 .site-header{padding-inline:16px;gap:10px}
}
@media(prefers-reduced-motion:reduce){
 .drawer-backdrop,.drawer-panel,.drawer-nav a svg,body>footer.site-footer .footer-nav a,#bag[open],#bag[open]::backdrop{animation:none!important;transition:none!important}
}

/* Account profile card (customers.js, /team?account=1). */
#team-workspace .profile-card{
 margin:0 0 28px;
 padding:clamp(18px,2.5vw,28px);
 display:flex;
 flex-direction:column;
 gap:20px;
}
#team-workspace .profile-card-head h3{
 margin:0 0 4px;
 font-size:20px;
 font-weight:600;
 letter-spacing:-.02em;
}
#team-workspace .profile-card-head .small-copy{
 margin:0;
}
.profile-card-grid{
 display:grid;
 grid-template-columns:minmax(240px,.95fr) minmax(0,1.25fr);
 gap:24px;
 align-items:center;
}
.profile-avatar-row{
 display:flex;
 align-items:center;
 gap:16px;
 min-width:0;
}
.profile-avatar-circle{
 position:relative;
 width:76px;
 height:76px;
 border-radius:50%;
 border:1px solid var(--line);
 background:var(--surface,#eae8e1);
 display:grid;
 place-items:center;
 overflow:hidden;
 flex-shrink:0;
}
:root[data-theme=dark] .profile-avatar-circle{
 background:var(--surface,#202428);
}
.profile-avatar-circle img{
 width:100%;
 height:100%;
 object-fit:cover;
 display:block;
 border-radius:50%;
}
.profile-avatar-initials{
 font-size:22px;
 font-weight:600;
 letter-spacing:.03em;
 color:var(--ink);
 text-transform:uppercase;
 user-select:none;
}
.profile-avatar-badge{
 position:absolute;
 left:0;
 right:0;
 bottom:0;
 background:rgb(23 24 22 / .78);
 color:#fff;
 font-size:9px;
 font-weight:600;
 letter-spacing:.08em;
 text-transform:uppercase;
 text-align:center;
 padding:3px 0;
}
.profile-avatar-controls{
 min-width:0;
 display:flex;
 flex-direction:column;
 gap:6px;
}
#team-workspace .profile-avatar-controls .workspace-actions{
 margin:0;
 gap:8px;
}
#team-workspace .profile-avatar-controls .small-copy{
 margin:0;
 line-height:1.45;
}
.profile-fields{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:14px;
 min-width:0;
}
#team-workspace .profile-fields label{
 margin:0;
}
.profile-card-foot{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:14px;
 padding-top:16px;
 border-top:1px solid var(--line);
}
#team-workspace .profile-card-foot .button{
 width:auto;
 min-width:148px;
 justify-content:center;
}
#team-workspace .profile-status{
 margin:0;
 font-size:13px;
 line-height:1.5;
 color:var(--ink);
}
#team-workspace .profile-status:empty{
 display:none;
}
#team-workspace .profile-status[data-state="saved"],
#team-workspace .profile-status[data-state="preview"]{
 padding:8px 12px;
 border:1px solid var(--line);
 border-left:3px solid var(--ink);
 background:var(--paper);
}
#team-workspace .profile-status[data-state="error"]{
 padding:8px 12px;
 border:1px solid var(--line);
 border-left:3px solid var(--red);
 background:var(--paper);
 color:var(--red);
}
:root[data-theme=dark] #team-workspace .profile-status[data-state="error"]{
 color:#ff9ca9;
}
@media(max-width:860px){
 .profile-card-grid{
  grid-template-columns:1fr;
  gap:18px;
 }
}
@media(max-width:760px){
 .profile-fields{
  grid-template-columns:1fr;
 }
 .profile-avatar-row{
  align-items:flex-start;
 }
 #team-workspace .profile-card-foot .button{
  width:100%;
 }
}
@media(max-width:360px){
 .profile-avatar-row{
  flex-direction:column;
 }
}

/* Contact page (/contact). */
.contact-page{background:var(--paper);color:var(--ink);padding:clamp(28px,4.5vh,64px) clamp(20px,5vw,96px) clamp(40px,6vh,72px)}
.contact-shell{max-width:1160px;margin:0 auto}
.contact-head{margin:0 0 clamp(24px,3.5vh,40px);padding-bottom:clamp(20px,2.8vh,28px);border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,420px);gap:16px 40px;align-items:end}
.contact-head .eyebrow{margin:0 0 12px;color:var(--muted,#686c69)}
.contact-head h1{margin:0;font-size:clamp(32px,4vw,50px);font-weight:600;line-height:1.08;letter-spacing:-.04em}
.contact-intro{margin:0;font-size:15px;line-height:1.65;color:var(--muted,#686c69)}
.contact-grid{display:grid;grid-template-columns:minmax(270px,.88fr) minmax(0,1.25fr);gap:clamp(24px,4vw,56px);align-items:start}
.contact-channels{display:flex;flex-direction:column;gap:16px;min-width:0}
.contact-card{border:1px solid var(--line);background:var(--paper);padding:20px 22px;display:flex;flex-direction:column;gap:10px;min-width:0}
.contact-card-eyebrow{margin:0;font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted,#686c69)}
.contact-address{margin:0;font-size:17px;font-weight:600;letter-spacing:-.015em;color:var(--ink);overflow-wrap:anywhere;user-select:all}
.contact-card-note{margin:0;font-size:13px;line-height:1.55;color:var(--muted,#686c69)}
.contact-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px}
.contact-action-btn,.contact-mailto{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 13px;border:1px solid var(--line);background:transparent;color:var(--ink);font-size:12px;font-weight:500;line-height:1.3;text-decoration:none;cursor:pointer;transition:border-color .15s,background-color .15s}
.contact-action-btn:hover,.contact-mailto:hover{border-color:var(--ink)}
.contact-action-btn[data-copied="true"]{border-color:var(--ink);background:var(--ink);color:var(--paper)}
.contact-action-btn svg,.contact-mailto svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.6;fill:none;flex:none}
.contact-socials{border:1px solid var(--line);background:var(--paper);padding:20px 22px;display:flex;flex-direction:column;gap:12px}
.contact-socials-list{display:flex;flex-wrap:wrap;gap:8px}
.contact-social-link{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 13px;border:1px solid var(--line);color:var(--ink);font-size:12px;font-weight:500;text-decoration:none;transition:border-color .15s,opacity .15s}
.contact-social-link:hover{border-color:var(--ink)}
.contact-social-link svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.6;fill:none;flex:none}
.contact-social-unavailable{position:relative;display:inline-flex;outline:none;cursor:not-allowed;-webkit-tap-highlight-color:transparent}
.contact-social-unavailable .contact-social-link.is-disabled{opacity:.52;border-style:dashed;pointer-events:none;cursor:not-allowed}
.contact-social-unavailable:hover .contact-social-link.is-disabled,
.contact-social-unavailable:focus-visible .contact-social-link.is-disabled,
.contact-social-unavailable[data-tip-open="true"] .contact-social-link.is-disabled{opacity:.82;border-color:var(--ink)}
.contact-social-unavailable:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.contact-social-tip{position:absolute;left:50%;bottom:calc(100% + 7px);transform:translateX(calc(-50% + var(--tip-shift,0px))) translateY(2px);background:var(--ink);color:var(--paper);font-size:11px;font-weight:500;line-height:1.3;padding:6px 10px;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;z-index:6;box-shadow:0 4px 14px rgb(0 0 0 / .16);transition:opacity .15s,transform .15s,visibility .15s}
.contact-social-tip::after{content:"";position:absolute;top:100%;left:calc(50% - var(--tip-shift,0px));transform:translateX(-50%);border:5px solid transparent;border-top-color:var(--ink)}
.contact-social-unavailable:hover .contact-social-tip,
.contact-social-unavailable:focus .contact-social-tip,
.contact-social-unavailable:focus-visible .contact-social-tip,
.contact-social-unavailable:focus-within .contact-social-tip,
.contact-social-unavailable[data-tip-open="true"] .contact-social-tip{opacity:1;visibility:visible;transform:translateX(calc(-50% + var(--tip-shift,0px))) translateY(0)}
.contact-form-card{border:1px solid var(--line);background:var(--surface,#eae8e1);padding:clamp(20px,3vw,32px);min-width:0}
:root[data-theme=dark] .contact-form-card{background:var(--surface,#202428)}
.contact-form-card h2{margin:0 0 6px;font-size:22px;font-weight:600;letter-spacing:-.025em}
.contact-form-sub{margin:0 0 22px;font-size:13px;line-height:1.6;color:var(--muted,#686c69)}
.contact-form{display:grid;gap:16px}
.contact-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.contact-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:500;line-height:1.4;color:var(--ink);min-width:0}
.contact-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.contact-optional,.contact-counter{font-size:11px;font-weight:400;color:var(--muted,#686c69);font-variant-numeric:tabular-nums}
.contact-form input:not([type=checkbox]),.contact-form select,.contact-form textarea{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:0;background:var(--paper);color:var(--ink);font:inherit;font-size:14px;line-height:1.4}
.contact-form textarea{min-height:120px;resize:vertical;line-height:1.55}
.contact-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.contact-submit-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;margin-top:4px}
.contact-submit-row .button{min-height:46px;padding:12px 22px;gap:18px}
.contact-status{margin:0;font-size:13px;line-height:1.55;color:var(--ink)}
.contact-status:empty{display:none}
.contact-status[data-state="sent"]{padding:12px 14px;border:1px solid var(--line);border-left:3px solid var(--ink);background:var(--paper)}
.contact-status[data-state="error"]{padding:12px 14px;border:1px solid var(--line);border-left:3px solid var(--red);background:var(--paper);color:var(--red)}
:root[data-theme=dark] .contact-status[data-state="error"]{color:#ff9ca9}
@media(max-width:860px){
 .contact-head,.contact-grid{grid-template-columns:1fr}
 .contact-head{gap:10px}
}
@media(max-width:760px){
 .contact-page{padding:24px 20px 88px}
 .contact-form-row{grid-template-columns:1fr;gap:14px}
 .contact-form input:not([type=checkbox]),.contact-form select,.contact-form textarea{font-size:16px}
 .contact-submit-row .button{width:100%}
}
.opium-captcha{margin:4px 0 14px}
.opium-captcha:empty{display:none}
/* Very narrow phones: five round buttons don't fit. The side menu has the Appearance switch, so the header theme button goes. */
@media(max-width:360px){.site-header #theme-toggle{display:none!important}}
