/* V64 / THE303 Meta consent controls. Independent from existing homepage styles. */
.the303-meta-consent,.the303-meta-consent *,.the303-meta-footer,.the303-meta-footer *{box-sizing:border-box}
.the303-meta-consent{position:fixed;z-index:2200;left:clamp(12px,2vw,32px);bottom:clamp(12px,2vw,32px);width:min(540px,calc(100% - 24px));display:flex;align-items:center;gap:18px;padding:18px 20px;border:1px solid rgba(102,78,64,.19);border-radius:2px;background:#faf8f5;color:#3d332e;box-shadow:0 12px 32px rgba(48,32,25,.16);font-family:'Noto Sans KR',sans-serif;letter-spacing:-.015em}
.the303-meta-consent-copy{min-width:0;flex:1}
.the303-meta-consent-copy strong{display:block;font-size:13px;font-weight:700;line-height:1.5;color:#44362e}
.the303-meta-consent-copy p{font-size:11px;line-height:1.65;margin:5px 0 6px;color:#66574f;word-break:keep-all}
.the303-meta-consent-copy a{font-size:11px;color:#754747;border-bottom:1px solid rgba(117,71,71,.35);padding-bottom:2px;text-decoration:none}
.the303-meta-consent-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.the303-meta-consent-actions button{appearance:none;min-width:65px;min-height:38px;padding:8px 11px;border:1px solid #754747;font:500 12px/1.35 'Noto Sans KR',sans-serif;cursor:pointer;border-radius:1px}
.the303-meta-reject{background:#faf8f5;color:#754747}
.the303-meta-accept{background:#754747;color:#faf8f5}
.the303-meta-consent button:focus-visible,.the303-meta-footer :focus-visible{outline:2px solid #a56d61;outline-offset:3px}
.the303-meta-footer{display:inline-flex;align-items:center;gap:12px;font:500 10px/1.4 'Noto Sans KR',sans-serif;letter-spacing:-.01em}
.the303-meta-footer a,.the303-meta-footer button{color:inherit!important;font:inherit;text-decoration:underline;text-underline-offset:3px;opacity:.85;cursor:pointer;background:transparent;border:0;padding:0;white-space:nowrap}
@media(max-width:850px){.the303-meta-consent{bottom:calc(72px + env(safe-area-inset-bottom,0px));left:12px;width:calc(100% - 24px);padding:16px;gap:12px;flex-direction:column;align-items:stretch}.the303-meta-consent-actions{justify-content:flex-end}.the303-meta-consent-actions button{min-width:92px;min-height:40px}.the303-meta-footer{gap:12px}}
@media(max-width:350px){.the303-meta-consent{padding:13px}.the303-meta-consent-copy p{font-size:10.5px}}

/* V66-02: desktop placement; mobile and consent behaviour unchanged. */
@media(min-width:1025px){
  .the303-meta-consent{left:auto;right:clamp(12px,2vw,32px)}
  body:has(.to-top.show) .the303-meta-consent{bottom:96px}
  body:has(.editor.open,.page-editor.is-open) .the303-meta-consent{left:clamp(12px,2vw,32px);right:auto;bottom:clamp(12px,2vw,32px)}
}

/* V66-03: compact desktop frosted glass; 50% background transparency.
   Text remains opaque; matching consent choices. Mobile rules unchanged. */
@media(min-width:1025px){
  .the303-meta-consent{
    width:min(460px,calc(100% - 24px));padding:13px 15px;
    display:grid;grid-template-columns:minmax(0,1fr) auto;
    column-gap:12px;row-gap:7px;align-items:center;
    background:rgba(255,249,242,.5);color:#130f0c;
    -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
    border:1px solid rgba(255,249,242,.4);border-radius:4px;
    box-shadow:0 4px 16px rgba(48,32,25,.08);
  }
  .the303-meta-consent-copy{display:contents}
  .the303-meta-consent-copy strong{grid-column:1/-1;font-size:14px;line-height:1.45;color:#130f0c}
  .the303-meta-consent-copy p{grid-column:1/-1;font-size:13px;line-height:1.55;margin:0;color:#130f0c}
  .the303-meta-consent-copy a{grid-column:1;justify-self:start;font-size:12px;color:#130f0c;border-color:currentColor;padding-bottom:1px}
  .the303-meta-consent-actions{grid-column:2;gap:8px;justify-content:flex-end}
  .the303-meta-consent-actions button{min-width:68px;min-height:44px;padding:8px 12px;font-size:13px;border:1px solid #49372f;border-radius:2px;background:rgba(255,249,242,.32);color:#130f0c}
  .the303-meta-consent-actions button:hover{background:rgba(255,249,242,.65)}
  .the303-meta-consent button:focus-visible{outline-color:#130f0c}
  @supports not ((backdrop-filter:blur(16px)) or (-webkit-backdrop-filter:blur(16px))){
    .the303-meta-consent{background:rgba(255,249,242,.88)}
  }
}

/* V66-04: compact mobile consent panel. Desktop V66-03 and consent logic unchanged.
   Concise mobile copy preserves the meaning, link and equally weighted choices; no auto-dismiss. */
.the303-meta-copy-mobile{display:none}
@media(max-width:850px){
  .the303-meta-copy-full{display:none}
  .the303-meta-copy-mobile{display:inline}
}
@media(max-width:850px){
  .the303-meta-consent{
    left:10px;right:10px;margin-inline:auto;width:min(440px,calc(100% - 20px));
    bottom:calc(66px + env(safe-area-inset-bottom,0px));
    display:grid;grid-template-columns:minmax(0,1fr) auto;
    column-gap:8px;row-gap:3px;align-items:center;
    padding:7px 10px 6px;
    background:rgba(255,249,242,.55);color:#130f0c;
    -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
    border:1px solid rgba(255,249,242,.38);border-radius:4px;
    box-shadow:0 3px 12px rgba(48,32,25,.08);
  }
  .the303-meta-consent-copy{display:contents}
  .the303-meta-consent-copy strong{grid-column:1/-1;font-size:12px;line-height:1.4;color:#130f0c}
  .the303-meta-consent-copy p{grid-column:1/-1;font-size:12px;line-height:1.45;margin:0;color:#130f0c;word-break:keep-all;overflow-wrap:anywhere}
  .the303-meta-consent-copy a{grid-column:1;justify-self:start;display:inline-flex;align-items:center;min-height:44px;font-size:12px;color:#130f0c;border:0;padding:0;text-decoration:underline;text-underline-offset:3px}
  .the303-meta-consent-actions{grid-column:2;gap:6px;justify-content:flex-end}
  .the303-meta-consent-actions button{min-width:60px;min-height:44px;padding:5px 10px;font-size:12px;border:1px solid #49372f;border-radius:2px;background:rgba(255,249,242,.32);color:#130f0c}
  .the303-meta-consent button:focus-visible,.the303-meta-consent a:focus-visible{outline:2px solid #130f0c;outline-offset:2px}
  @supports not ((backdrop-filter:blur(16px)) or (-webkit-backdrop-filter:blur(16px))){
    .the303-meta-consent{background:rgba(255,249,242,.88)}
  }
  @media(max-width:350px){.the303-meta-consent{padding-inline:8px}.the303-meta-consent-actions button{min-width:56px}}
  /* While the notice is open, keep hero navigation and lower titles above it.
     No change to imagery, slide motion, or the original layout after a choice. */
  body:has(> .the303-meta-consent){--the303-consent-clearance:calc(var(--the303-consent-height,134px) + 9px)}
  body.the303-index-v111:has(> .the303-meta-consent) #home.the303-intro-v05 .hero-navigation{
    bottom:calc(72px + var(--the303-consent-clearance) + env(safe-area-inset-bottom,0px)) !important;
  }
  body.the303-index-v111:has(> .the303-meta-consent) #home.the303-intro-v05 .hero-slide:is(.hero-slide--line,.hero-slide--flow,.hero-slide--control,.hero-slide--brand) .hero-content{
    bottom:calc(128px + var(--the303-consent-clearance) + env(safe-area-inset-bottom,0px)) !important;
  }
  body:has(> .the303-meta-consent) .to-top.show{
    bottom:calc(72px + var(--the303-consent-clearance) + env(safe-area-inset-bottom,0px));
  }
  @media(max-width:350px){body:has(> .the303-meta-consent){--the303-consent-clearance:calc(var(--the303-consent-height,153px) + 9px)}}
}
/* Temporary optical contrast at the raised title positions only. */
@media(max-width:850px){
  body.the303-index-v111:has(> .the303-meta-consent) #home.the303-intro-v05 .hero-slide--flow .hero-content :is(h2,.hero-editorial-link){
    text-shadow:0 0 2px rgba(255,249,242,.92),0 1px 5px rgba(255,249,242,.7)!important;
  }
  body.the303-index-v111:has(> .the303-meta-consent) #home.the303-intro-v05 .hero-slide--brand .hero-content h2{
    text-shadow:0 1px 3px rgba(23,22,22,.8),0 0 6px rgba(23,22,22,.4)!important;
  }
}
