:root {
    --ink: #222; --muted: #777; --line: #e9e7e2;
    --paper: #fff; --soft: #f7f6f2; --beige: #f1ece3;
    --accent: #bb4e3d; --green: #4a6757;
    --max: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: Arial, 'Noto Sans KR', sans-serif;
    letter-spacing: -0.02em; font-size: 15px;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
.serif { font-family: Georgia, 'Nanum Myeongjo', serif; letter-spacing: -0.04em; }

/* ---- Layout containers ---- */
.inner {
    width: min(var(--max), calc(100% - 56px));
    margin-inline: auto;
}
@media (max-width: 560px) {
    .inner { width: min(var(--max), calc(100% - 28px)); }
}

/* ---- Utility bar ---- */
.util { border-bottom: 1px solid #f1efea; font-size: 12px; color: #8a8a86; }
.util .inner { height: 34px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.util a:hover { color: var(--ink); }

/* ---- Header (masthead, editorial magazine style) ---- */
.header {
    position: sticky; top: 0; z-index: 5;
    background: #fbfaf8; backdrop-filter: blur(10px);
    border-bottom: 1px solid #e9e8e5;
}
.headrow {
    height: 82px;
    display: grid; grid-template-columns: 220px 1fr auto;
    align-items: center; gap: 30px;
    container-type: inline-size;
}
.logo { display: inline-flex; align-items: center; color: var(--ink); }
.logo .bi { width: 240px; height: 58px; display: block; }
.logo .bi text.hangul { font-family: 'Noto Serif KR', Georgia, serif; font-weight: 800; }
.logo .bi text.latin { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; letter-spacing: 3.4px; }
.logo .bi text.tag { font-family: 'Noto Sans KR', Arial, sans-serif; font-size: 12px; letter-spacing: 1.4px; fill: #85827b; }
.logo:hover .bi .soban { stroke: var(--accent); transition: stroke 0.2s ease; }
.nav {
    display: flex; justify-content: center; gap: 28px;
    font-size: clamp(14px, 1.43cqw, 20px); font-weight: 600; color: #4b4b4b;
}
.nav a { color: #4b4b4b; transition: color 0.15s ease; white-space: nowrap; }
/* 9 menu items: tighter spacing before the burger takes over at 900px */
@media (max-width: 1200px) { .nav { gap: 16px; } }
@media (max-width: 1000px) { .nav { gap: 10px; } }
.nav a:hover { color: var(--accent); }
/* Highlighted menu items: colored text + dot marker + hover underline */
.nav-hl--century { --hl: var(--accent); }
.nav-hl--table { --hl: var(--green); }
.nav a.nav-hl {
    position: relative; padding-left: 12px;
    color: var(--hl); font-weight: 700; letter-spacing: -0.01em;
}
.nav a.nav-hl::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
    background: var(--hl); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hl) 18%, transparent);
}
.nav a.nav-hl::after {
    content: ""; position: absolute; left: 12px; right: 0; bottom: -6px; height: 1.5px;
    background: var(--hl); transform: scaleX(0); transform-origin: left;
    transition: transform 0.25s ease;
}
.nav a.nav-hl:hover { color: var(--hl); }
.nav a.nav-hl:hover::after { transform: scaleX(1); }
.actions {
    display: flex; align-items: center; gap: 18px;
}
.actions .ico {
    background: transparent; border: 0; padding: 0; cursor: pointer;
    width: 22px; height: 22px; display: grid; place-items: center;
    color: #454545;
}
.actions .ico svg {
    width: 22px; height: 22px; fill: none;
    stroke: #454545; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.actions .ico:hover svg { stroke: var(--accent); }
.actions form { display: inline; margin: 0; }
.actions .login-btn {
    border: 1px solid #777; border-radius: 99px;
    font-size: 11px; letter-spacing: 0.05em; font-weight: 600;
    padding: 8px 18px; color: var(--ink); background: transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}
.actions .login-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 900px) {
    .headrow { grid-template-columns: 1fr auto; gap: 12px; }
}
@media (max-width: 560px) {
    .headrow { height: 64px; gap: 8px; }
    .logo .bi { width: 170px; height: 42px; }
    .actions { gap: 10px; }
    .actions .ico, .actions .ico svg { width: 20px; height: 20px; }
    .actions .login-btn { padding: 6px 12px; font-size: 10px; letter-spacing: 0.03em; }
}
@media (max-width: 380px) {
    .headrow { gap: 6px; }
    .logo .bi { width: 140px; height: 34px; }
    .actions { gap: 8px; }
    .actions .login-btn { padding: 5px 10px; font-size: 9.5px; }
}

/* ---- Section defaults ---- */
.section { padding: 108px 0 0; }
.section.soft { margin-top: 110px; padding: 95px 0; background: var(--soft); }
.titleRow {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 36px; flex-wrap: wrap; gap: 12px;
}
.sectionTitle .eyebrow {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: Georgia, 'Noto Serif KR', serif; font-size: 11px; font-weight: 700;
    color: var(--accent); letter-spacing: 0.32em; text-transform: uppercase;
    margin-bottom: 14px;
}
.sectionTitle .eyebrow .num { font-style: italic; font-weight: 600; letter-spacing: 0.08em; }
.sectionTitle .eyebrow .line {
    display: inline-block; width: 42px; height: 1px; background: var(--accent);
}
.sectionTitle h2 {
    font-family: Georgia, 'Noto Serif KR', serif; font-size: 44px;
    margin: 0 0 10px; letter-spacing: -0.025em; color: var(--ink);
    font-weight: 700; line-height: 1.08;
}
.sectionTitle p {
    margin: 0; color: #8a8780; font-size: 14px;
    letter-spacing: 0.02em; line-height: 1.5;
}
.more {
    font-family: Georgia, serif; font-size: 11px; font-weight: 700;
    color: #5a5751; letter-spacing: 0.26em; text-transform: uppercase;
    padding: 10px 0; border: 0; display: inline-flex; align-items: center; gap: 8px;
}
.more::after { content: '→'; font-style: normal; }
.more:hover { color: var(--accent); }
@media (max-width: 900px) { .sectionTitle h2 { font-size: 32px; } }

/* ---- Breadcrumb (consistent across all sub-pages) ---- */
.crumb {
    max-width: 1240px; margin: 0 auto; padding: 24px 20px 16px;
    font-size: 12px; color: #888; letter-spacing: 0.08em; line-height: 1.5;
}
.crumb a { color: #888; text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb .sep { margin: 0 8px; opacity: 0.5; }
.crumb .cur { color: var(--ink); font-weight: 600; }
/* when nested in another container (e.g. brand .bd-wrap), skip the padding */
.bd-wrap > .crumb, .inner > .crumb, main > div > .crumb { max-width: none; padding: 0 0 20px; margin: 0; }

/* ---- Magazine cover overlay (shared by archive-card + main magCard) ---- */
.mag-cover { position: relative; overflow: hidden; }
.mag-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.mag-cover:hover > img { transform: scale(1.04); }
.mag-cover::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.78) 100%),
        linear-gradient(0deg, rgba(0,0,0,0.12), rgba(0,0,0,0.12));
}
.mag-cover .cover-overlay {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 7%; color: #fff;
    font-family: Georgia, 'Noto Serif KR', serif;
}
.mag-cover .mast {
    display: flex; align-items: baseline; gap: 8px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.26em;
}
.mag-cover .mast .brand { color: #fff; }
.mag-cover .mast .sub { opacity: 0.7; font-weight: 400; font-style: italic; letter-spacing: 0.2em; }
.mag-cover .title { text-align: left; margin-top: auto; }
.mag-cover .title .pre {
    display: block; font-style: italic; font-size: 15px;
    opacity: 0.85; letter-spacing: 0.02em; margin-bottom: 4px;
}
.mag-cover .title .country {
    display: block; font-size: 32px; font-weight: 700;
    letter-spacing: -0.02em; line-height: 1; color: #f6b26b;
}
.mag-cover .foot {
    display: flex; align-items: center; gap: 8px; margin-top: 14px;
    font-size: 10px; letter-spacing: 0.22em; font-weight: 600;
    padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.35);
}
.mag-cover .foot .dot { opacity: 0.5; }
/* Compact mode (main magGrid cards) */
.mag-cover.compact { aspect-ratio: 1.08/1; }
.mag-cover.compact .title .country { font-size: 26px; }
.mag-cover.compact .title .pre { font-size: 13px; }
.mag-cover.compact .foot { font-size: 9px; }

/* ---- Buttons ---- */
.btn-pill {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 132px; height: 44px; padding: 0 22px; border-radius: 24px;
    background: var(--ink); color: #fff !important; font-size: 12px; font-weight: 800;
    letter-spacing: 0.06em; border: 1.5px solid var(--ink);
    transition: background 0.2s ease, color 0.2s ease;
}
.btn-pill:hover { background: transparent; color: var(--ink) !important; }
.btn-pill.outline { background: transparent; color: var(--ink) !important; }
.btn-pill.outline:hover { background: var(--ink); color: #fff !important; }

/* ---- Service cards (docs/globalfood_1023 service-section 스타일) ---- */
.service { margin-top: 120px; padding: 85px 0 90px; background: #f7f7f7; }
.service h2 { margin: 0; text-align: center; font-size: 32px; font-weight: 700; letter-spacing: -1.1px; line-height: 1.45; }
.serviceGrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; margin-top: 45px; }
.serviceItem { display: block; min-height: 215px; padding: 35px 37px; background: #fff; color: inherit;
    border: 1px solid #eeeeec; border-radius: 18px; box-shadow: 0 1px 6px #00000003; transition: transform .2s; }
.serviceItem:hover { transform: translateY(-4px); }
.serviceItem svg { width: 31px; height: 31px; color: #999e95; display: block; margin-bottom: 18px;
    fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.serviceItem b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.8px; white-space: nowrap; }
.serviceItem p { color: #9da194; font-size: 14px; line-height: 1.65; margin: 8px 0 0; }
@media (max-width: 1100px) { .serviceGrid { gap: 18px; } .serviceItem { padding: 26px 22px; } .serviceItem b { font-size: 17px; } .serviceItem p { font-size: 12px; } }

/* ---- Footer ---- */
.footer { padding: 58px 0 70px; background: #5a5b58; color: #b1b2ac; }
.footTop { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 45px; }
.footLogo { font-family: Georgia, serif; font-size: 26px; letter-spacing: -0.04em; color: #dedfd7; }
.foot h5 { font-size: 12px; margin: 0 0 15px; letter-spacing: 0.08em; color: #dedfd7; }
.foot a, .foot p {
    display: block; font-size: 11px; color: #b1b2ac; line-height: 1.9; margin: 0;
}
.foot a:hover { color: #fff; }
.copyright {
    border-top: 1px solid #72736d66; margin-top: 38px; padding-top: 24px;
    font-size: 10px; color: #a6aa9c;
}

/* ---- Default page container (for pages without their own .inner sections) ----
   Editorial pages (index, product detail) set class="no-inner" on their <main> to opt out. */
body > main > main {
    display: block; padding: 14px 0 14px;
}
body > main > main:not(.no-inner) > * {
    width: min(var(--max), calc(100% - 56px));
    margin-inline: auto;
}
body > main > main:not(.no-inner) > h1 { font-size: 26px; font-weight: 700; margin-top: 0; margin-bottom: 24px; }

/* ---- Mobile hamburger + drawer ---- */
.burger {
    display: none; width: 32px; height: 32px; place-items: center;
    background: transparent; border: 0; cursor: pointer; color: #1c1a17;
}
.burger svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mnav-scrim {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 10;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.mnav-scrim.open { opacity: 1; pointer-events: auto; }
.mnav {
    position: fixed; left: 0; right: 0; top: 0; z-index: 11;
    background: #fbfaf8; max-height: 100vh; overflow-y: auto;
    transform: translateY(-100%); transition: transform 0.25s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.mnav.open { transform: translateY(0); }
.mnav-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px; border-bottom: 1px solid #e9e8e5;
}
.mnav-head b { font-family: 'Noto Serif KR', Georgia, serif; font-size: 16px; }
.mnav-close {
    width: 32px; height: 32px; border: 0; background: transparent;
    font-size: 24px; cursor: pointer; color: #1c1a17; line-height: 1;
}
.mnav-list { list-style: none; margin: 0; padding: 8px 0; }
.mnav-list a {
    display: block; padding: 14px 20px; font-size: 16px; font-weight: 600;
    color: #1c1a17; border-bottom: 1px solid #f1efea;
}
.mnav-list a:active { background: #f4f2ed; }
/* Highlighted mobile items: same dot marker + color as the top nav */
.mnav-list a.nav-hl {
    display: flex; align-items: center; gap: 10px;
    color: var(--hl); font-weight: 700;
}
.mnav-list a.nav-hl::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
    background: var(--hl); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hl) 18%, transparent);
}
.mnav-util { padding: 8px 0 20px; background: #f4f2ed; }
.mnav-util + .mnav-util { padding-top: 0; border-top: 1px solid #e9e8e5; }
.mnav-util a {
    display: block; padding: 10px 20px; font-size: 13px; color: #4b4b4b;
}
.mnav-section {
    padding: 14px 20px 6px; font-size: 11px; letter-spacing: 0.14em;
    color: #8c877e; font-weight: 700; text-transform: uppercase;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .util .inner {
        justify-content: flex-start;
        overflow-x: auto; flex-wrap: nowrap;
        gap: 14px; padding: 0 14px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .util .inner::-webkit-scrollbar { display: none; }
    .util a { white-space: nowrap; flex: 0 0 auto; }
    .nav { display: none; }
    .headrow { grid-template-columns: auto 1fr auto; gap: 12px; }
    .burger { display: grid; }
    .actions { grid-column: 3; }
    .section { padding-top: 78px; }
    .footTop { grid-template-columns: 1fr 1fr; gap: 24px; }
    .serviceGrid { grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 28px; }
    .service { padding: 50px 0 60px; }
    .serviceItem { min-height: 177px; border-radius: 12px; padding: 25px 18px; }
    .serviceItem svg { width: 25px; height: 25px; margin-bottom: 15px; }
    .serviceItem b { font-size: 15px; letter-spacing: -.7px; }
    .serviceItem p { font-size: 11px; margin-top: 7px; }
    .serviceItem { border-right: 0; }
}
@media (max-width: 560px) {
    .footTop { grid-template-columns: 1fr; }
}
/* ---- Announcement (메인 최상단, docs/globalfood_1023 시안) ---- */
.announcement { position: relative; height: 50px; background: #30302f; color: #fff;
    display: flex; align-items: center; justify-content: center; }
.announcement-link { font-size: 15px; font-weight: 600; color: #fff; }
.announcement-link:hover { color: #fff; text-decoration: underline; }
.announcement-close { position: absolute; left: calc(50% + 170px); top: 50%; transform: translateY(-50%);
    border: 0; background: none; padding: 0; color: #e4e4e4; cursor: pointer; display: grid; place-items: center; }
.announcement-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; }
@media (max-width: 767px) {
    .announcement { height: 34px; }
    .announcement-link { font-size: 11px; }
    .announcement-close { left: auto; right: 10px; width: 25px; }
    .announcement-close svg { width: 17px; height: 17px; }
}
