/* ============================================================
   MEETORY — search-data travel magazine
   Aesthetic: Korean editorial print × trend-data graphics
   Paper cream / ink navy / dancheong vermilion / ocean teal
   ============================================================ */

:root {
  --paper: #F7F1E5;
  --paper-2: #F3E9D2;
  --ink: #16213A;
  --ink-soft: #3E4A63;
  --vermilion: #E34A27;
  --vermilion-dark: #B93A1D;
  --ocean: #0E5E7A;
  --gold: #C9962E;
  --green: #2E6B4F;   /* obangsaek green */
  --line: #D9CDB4;
  --up: #C93A17;

  /* saekdong (색동) stripe — obangsaek band used on masthead & footer */
  --saekdong: repeating-linear-gradient(90deg,
      var(--vermilion) 0 56px, var(--gold) 56px 112px, var(--green) 112px 168px,
      var(--ocean) 168px 224px, var(--ink) 224px 280px);

  --serif: "Fraunces", "Gowun Batang", "Noto Serif JP", "Noto Serif SC", Georgia, serif;
  --sans: "Hanken Grotesk", "IBM Plex Sans KR", "Noto Sans JP", "Noto Sans SC", -apple-system, sans-serif;

  --wrap: 1140px;
}
.lang-ko { --serif: "Fraunces", "Gowun Batang", Georgia, serif; --sans: "IBM Plex Sans KR", "Hanken Grotesk", sans-serif; }
.lang-ja { --serif: "Fraunces", "Noto Serif JP", Georgia, serif; --sans: "Noto Sans JP", "Hanken Grotesk", sans-serif; }
.lang-zh { --serif: "Fraunces", "Noto Serif SC", Georgia, serif; --sans: "Noto Sans SC", "Hanken Grotesk", sans-serif; }
.lang-zht { --serif: "Fraunces", "Noto Serif TC", Georgia, serif; --sans: "Noto Sans TC", "Hanken Grotesk", sans-serif; }
.lang-th { --serif: "Fraunces", "Noto Serif Thai", Georgia, serif; --sans: "Noto Sans Thai", "Hanken Grotesk", sans-serif; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }

/* ---- Korea map watermark (Dokdo + East Sea included, always) ---- */
.korea-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  display: flex; justify-content: flex-end; align-items: center;
  color: var(--ink); opacity: .09;
}
.korea-bg svg { height: 88vh; max-width: 46vw; margin-right: 2vw; }
.korea-bg .sea-label { font-family: var(--serif); font-size: 26px; fill: var(--ocean); letter-spacing: .2em; }
.korea-bg .dokdo-label { font-family: var(--sans); font-size: 13px; fill: currentColor; font-weight: 700; }
main, .masthead, .footer { position: relative; z-index: 1; }

.taegeuk { display: inline-block; vertical-align: -2px; }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

::selection { background: var(--vermilion); color: var(--paper); }

/* ---------------- masthead ---------------- */
.masthead { border-bottom: 3px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.masthead::before { content: ""; display: block; height: 6px; background: var(--saekdong); }
.masthead-in { display: flex; align-items: center; gap: 28px; padding: 14px 24px; }
.logo { display: flex; flex-direction: column; line-height: 1.05; }
.logo-mark {
  font-family: "Fraunces", serif; font-weight: 900; font-size: 30px; letter-spacing: .02em;
  color: var(--ink);
}
.logo-mark::after { content: "."; color: var(--vermilion); }
.logo-mark.small { font-size: 24px; color: var(--paper); }
.logo-sub { font-size: 11px; letter-spacing: .08em; color: var(--ink-soft); text-transform: uppercase; }
.mainnav { display: flex; gap: 22px; margin-left: auto; font-weight: 700; font-size: 14.5px; }
.mainnav a { position: relative; padding: 4px 0; }
.mainnav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2.5px; background: var(--vermilion); transition: right .25s; }
.mainnav a:hover::after { right: 0; }
.langs { display: flex; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; font-size: 12px; font-weight: 700; }
.langs a { padding: 4px 10px; border-right: 2px solid var(--ink); transition: background .15s; }
.langs a:last-child { border-right: 0; }
.langs a:hover { background: var(--paper-2); }
.langs a.on { background: var(--ink); color: var(--paper); }

/* ticker */
.ticker { overflow: hidden; background: var(--ink); color: var(--paper); border-top: 1px solid var(--ink); }
.ticker-track { display: inline-flex; gap: 40px; padding: 7px 0; white-space: nowrap; animation: tick 28s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tick { font-size: 13px; letter-spacing: .02em; }
.tick b { color: var(--vermilion); font-family: "Fraunces", serif; margin-right: 6px; }
.tick em { font-style: normal; color: var(--gold); margin-left: 6px; }
.tick-src { opacity: .65; }

/* ---------------- hero ---------------- */
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero::after {
  content: "핫플"; position: absolute; right: -30px; top: -40px; z-index: 0;
  font-family: "Gowun Batang", "Noto Serif JP", "Noto Serif SC", serif; font-weight: 700;
  font-size: clamp(180px, 28vw, 340px); line-height: 1; color: var(--ink); opacity: .045;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-kicker {
  font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; font-weight: 800;
  color: var(--vermilion); margin-bottom: 18px;
  animation: rise .7s .05s both;
}
.hero-title {
  font-family: var(--serif); font-weight: 900; font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.08; letter-spacing: -.015em; max-width: 15em;
  animation: rise .7s .15s both;
}
.lang-ko .hero-title, .lang-ja .hero-title, .lang-zh .hero-title,
.lang-zht .hero-title, .lang-th .hero-title { line-height: 1.22; letter-spacing: 0; }
.lang-th .hero-title { line-height: 1.35; }
.searchbar {
  margin: 36px 0 22px; display: inline-flex; align-items: center; gap: 14px;
  background: #fff; border: 3px solid var(--ink); border-radius: 999px;
  padding: 16px 30px; min-width: min(560px, 100%);
  box-shadow: 8px 8px 0 var(--vermilion);
  animation: rise .7s .3s both;
}
.searchbar-ic { width: 26px; height: 26px; color: var(--ocean); flex: none; }
.searchbar { position: relative; cursor: text; }
.searchbar-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; outline: 0; background: transparent; border-radius: 999px;
  padding: 0 30px 0 72px; font-family: var(--serif); font-weight: 700;
  font-size: clamp(20px, 3vw, 28px); color: var(--ink);
}
.searchbar-input::placeholder { color: transparent; }
.searchbar.searching .searchbar-text, .searchbar.searching .caret { visibility: hidden; }
.searchbar.searching .searchbar-input::placeholder { color: #B9AE95; font-size: clamp(15px, 2vw, 19px); font-family: var(--sans); font-weight: 500; }
.search-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 3px solid var(--ink); border-radius: 18px; overflow: hidden;
  box-shadow: 8px 8px 0 rgba(22,33,58,.18);
}
.search-results a, .search-results .no-hit {
  display: block; padding: 12px 20px; font-size: 15.5px; border-bottom: 2px dashed var(--line);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a b { color: var(--vermilion); font-family: var(--serif); }
.search-results a small { display: block; color: var(--ink-soft); }
.search-results a:hover, .search-results a.sel { background: var(--paper-2); }
.search-results .no-hit { color: var(--ink-soft); font-style: italic; }
.searchbar-text { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 3vw, 28px); min-height: 1.3em; }
.caret { width: 3px; height: 1.2em; background: var(--vermilion); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { max-width: 620px; font-size: 17.5px; color: var(--ink-soft); animation: rise .7s .4s both; }
.hero-badges { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; animation: rise .7s .5s both; }
.hero-badges span {
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  border: 2px solid var(--ink); border-radius: 999px; padding: 5px 14px; background: var(--paper-2);
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------------- sections ---------------- */
section { padding: 34px 0; }
.sec-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; border-bottom: 3px solid var(--ink); padding-bottom: 12px; }
.sec-head h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.01em; }
.sec-head p { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.sec-head.inv { border-color: var(--paper); }

/* rank board */
.rank-board { display: flex; flex-direction: column; border: 3px solid var(--ink); background: #fff; box-shadow: 10px 10px 0 rgba(22,33,58,.12); }
.rank-row {
  display: grid; grid-template-columns: 84px 1.4fr 240px 1fr 48px; gap: 18px; align-items: center;
  padding: 18px 22px; border-bottom: 2px dashed var(--line); transition: background .15s;
}
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: var(--paper-2); }
.rank-no { font-family: "Fraunces", serif; font-weight: 900; font-size: 44px; color: var(--vermilion); line-height: 1; }
.rank-kw b { font-family: var(--serif); font-size: 21px; font-weight: 800; display: block; }
.rank-kw small { color: var(--ink-soft); font-size: 13px; display: block; margin-top: 2px; line-height: 1.45; }
.rank-spark { color: var(--ocean); }
.spark { width: 100%; height: 52px; }
.spark.big { height: 90px; }
.rank-stats b.up, .up { color: var(--up); font-weight: 800; }
.rank-stats small { display: block; color: var(--ink-soft); font-size: 12px; }
.rank-go { font-size: 22px; font-weight: 900; color: var(--ink); transition: transform .2s; text-align: right; }
.rank-row:hover .rank-go { transform: translateX(6px); color: var(--vermilion); }

/* featured */
.feat-card { border: 3px solid var(--ink); background: #fff; box-shadow: 12px 12px 0 var(--ocean); }
.feat-link { display: grid; grid-template-columns: 1.15fr 1fr; }
.feat-art { position: relative; border-right: 3px solid var(--ink); overflow: hidden; }
.feat-art .hero-art, .feat-art .photo-frame { height: 100%; width: 100%; }
.feat-art .hero-art, .feat-art .place-photo { object-fit: cover; transition: transform .5s; }
.feat-card:hover .hero-art, .feat-card:hover .place-photo { transform: scale(1.03); }
.feat-flag {
  position: absolute; top: 16px; left: 16px; background: var(--vermilion); color: var(--paper);
  font-weight: 800; font-size: 13px; padding: 6px 14px; border: 2px solid var(--ink);
}
.feat-body { padding: 34px 34px 30px; display: flex; flex-direction: column; gap: 12px; }
.feat-body h3 { font-family: var(--serif); font-weight: 900; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; }
.feat-body p { color: var(--ink-soft); font-size: 15.5px; }
.feat-cta { margin-top: auto; font-weight: 800; color: var(--vermilion); }
.card-cat { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ocean); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.card { border: 3px solid var(--ink); background: #fff; transition: transform .2s, box-shadow .2s; box-shadow: 6px 6px 0 rgba(22,33,58,.14); }
.card:hover { transform: translate(-3px,-3px); box-shadow: 10px 10px 0 var(--vermilion); }
.card-art { border-bottom: 3px solid var(--ink); overflow: hidden; }
.card-art .hero-art, .card-art .photo-frame { height: 170px; width: 100%; }
.card-art .hero-art, .card-art .place-photo { object-fit: cover; }
.card-body { padding: 20px 22px 22px; }
.card-body h3 { font-family: var(--serif); font-weight: 800; font-size: 19px; line-height: 1.35; margin: 8px 0 10px; }
.card-ex { color: var(--ink-soft); font-size: 14.5px; }
.card-meta { margin-top: 14px; font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.badge-up { background: var(--paper-2); border: 2px solid var(--ink); font-weight: 800; color: var(--up); font-size: 12px; padding: 2px 9px; border-radius: 999px; }

/* how */
.how { background: var(--ink); color: var(--paper); margin-top: 40px; padding: 60px 0; position: relative; overflow: hidden; }
/* dancheong cloud motif (운문) — traditional spiral clouds, gold outline */
.how::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='140' viewBox='0 0 220 140'%3E%3Cg fill='none' stroke='%23C9962E' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M20 70 q0 -26 26 -26 q22 0 24 18 q14 -10 26 2 q10 10 2 22 q22 -2 22 16'/%3E%3Cpath d='M36 70 q0 -12 12 -12 q10 0 12 8'/%3E%3Cpath d='M140 30 q14 -14 28 0 q12 12 0 26'/%3E%3Cpath d='M150 110 q-2 -18 16 -20 q16 -2 20 12'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 220px 140px;
}
.how .wrap { position: relative; z-index: 1; }
.how .sec-head h2 { color: var(--paper); }
.how .sec-head p { color: var(--gold); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.how-step { border-top: 3px solid var(--vermilion); padding-top: 18px; }
.how-no { font-family: "Fraunces", serif; font-weight: 900; font-size: 40px; color: var(--gold); display: block; line-height: 1; margin-bottom: 10px; }
.how-step h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; }
.how-step p { font-size: 14.5px; opacity: .85; }

/* ---------------- article ---------------- */
.article-wrap { padding: 44px 24px 60px; }
.crumbs { font-size: 13px; color: var(--ink-soft); margin-bottom: 26px; }
.crumbs a { color: var(--vermilion); font-weight: 700; }
.article { max-width: 780px; margin: 0 auto; }
.art-head h1 {
  font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.18; letter-spacing: -.01em; margin: 10px 0 14px;
}
.lang-ko .art-head h1, .lang-ja .art-head h1, .lang-zh .art-head h1,
.lang-zht .art-head h1 { line-height: 1.32; letter-spacing: 0; }
.lang-th .art-head h1 { line-height: 1.45; letter-spacing: 0; }
.art-meta { color: var(--ink-soft); font-size: 14px; border-bottom: 3px solid var(--ink); padding-bottom: 18px; }

.trend-box {
  display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: center;
  border: 3px solid var(--ink); background: #fff; padding: 22px 26px; margin: 28px 0;
  box-shadow: 8px 8px 0 rgba(14,94,122,.25);
}
.trend-kw { font-family: var(--serif); font-weight: 900; font-size: 26px; }
.trend-stats { font-size: 15px; margin-top: 4px; }
.trend-src { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.trend-box-r { color: var(--ocean); }

.art-hero { border: 3px solid var(--ink); margin: 26px 0; box-shadow: 10px 10px 0 rgba(22,33,58,.12); overflow: hidden; }
.art-hero svg { width: 100%; height: auto; }

/* Locally hosted, reuse-cleared real place photography. Credits stay visible wherever used. */
.photo-frame { position: relative; overflow: hidden; background: var(--ink); }
.photo-frame .place-photo { width: 100%; height: 100%; display: block; }
.photo-frame figcaption {
  position: absolute; right: 0; bottom: 0; z-index: 2; max-width: 92%;
  padding: 5px 9px; background: rgba(22,33,58,.88); color: #fff;
  font-size: 10.5px; line-height: 1.35; letter-spacing: .01em;
}
.photo-article .place-photo { height: auto; aspect-ratio: auto; }
.photo-article figcaption { font-size: 11px; }
.photo-article figcaption a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.photo-context { display: block; color: #F3E9D2; }

.art-body { font-size: 17px; }
.art-body .lead { font-size: 20px; line-height: 1.65; font-weight: 500; color: var(--ink); margin: 8px 0 10px; }
.art-body h2 {
  font-family: var(--serif); font-weight: 900; font-size: 26px; margin: 40px 0 14px;
  padding-left: 14px; border-left: 5px solid var(--vermilion); line-height: 1.3;
}
.art-body p { margin: 14px 0; color: #232E47; }
.art-body ul { margin: 14px 0 14px 22px; }
.art-body li { margin: 8px 0; color: #232E47; }
.art-body a { color: var(--vermilion); font-weight: 700; border-bottom: 2px solid rgba(227,74,39,.35); }

.info-table { width: 100%; border-collapse: collapse; margin: 18px 0; background: #fff; border: 3px solid var(--ink); font-size: 15px; }
.info-table th { text-align: left; background: var(--paper-2); padding: 11px 14px; border-bottom: 2px solid var(--line); width: 130px; vertical-align: top; font-weight: 800; }
.info-table td { padding: 11px 14px; border-bottom: 2px solid var(--line); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

.tip, .warn { border: 3px solid var(--ink); padding: 16px 20px; margin: 20px 0; font-size: 15.5px; }
.tip { background: #E8F0E4; box-shadow: 6px 6px 0 rgba(78,118,66,.35); }
.warn { background: #FBE8DE; box-shadow: 6px 6px 0 rgba(227,74,39,.35); }

.src-box { border-top: 3px solid var(--ink); margin-top: 40px; padding-top: 18px; font-size: 13.5px; color: var(--ink-soft); }
.src-box .disclaim { margin-top: 8px; font-style: italic; }

.related { max-width: 780px; margin: 46px auto 0; }
.related h2 { font-family: var(--serif); font-weight: 900; font-size: 24px; border-bottom: 3px solid var(--ink); padding-bottom: 10px; margin-bottom: 20px; }
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rel-card { border: 3px solid var(--ink); background: #fff; padding: 18px 20px; transition: transform .2s, box-shadow .2s; box-shadow: 5px 5px 0 rgba(22,33,58,.14); }
.rel-card:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--vermilion); }
.rel-card small { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ocean); display: block; margin-bottom: 6px; }
.rel-card b { font-family: var(--serif); font-size: 16.5px; line-height: 1.4; }

.page .art-body h2 { font-size: 23px; }

/* ---------------- daily TOP 10 panel (translucent, right side) ---------------- */
.rank10 {
  background: rgba(255,253,248,.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 3px solid var(--ink); border-radius: 14px; padding: 10px 16px;
  box-shadow: 8px 8px 0 rgba(22,33,58,.15);
  max-width: 1140px; margin: 10px auto 24px; width: calc(100% - 48px);
  transition: background .2s;
}
.rank10:not(.closed) { padding: 14px 18px 10px; background: rgba(255,253,248,.78); }
.rank10-head {
  display: flex; align-items: center; gap: 8px; width: 100%;
  font-family: var(--serif); font-weight: 900; font-size: 16px; color: var(--ink);
  background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left;
}
.rank10-chev { margin-left: auto; font-size: 14px; transition: transform .25s; }
.rank10:not(.closed) .rank10-chev { transform: rotate(180deg); }
.rank10.closed .rank10-body { display: none; }
.rank10-sub { font-size: 11.5px; color: var(--ink-soft); margin: 4px 0 10px; }
.r-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 4px;
  border-top: 1.5px dashed var(--line); font-size: 14px;
}
a.r-row:hover { background: rgba(243,233,210,.8); }
.r-no { font-family: "Fraunces", serif; font-weight: 900; color: var(--vermilion); width: 22px; text-align: center; flex: none; }
.r-thumb { width: 44px; height: 44px; object-fit: cover; border: 2px solid var(--ink); border-radius: 9px; flex: none; background: var(--paper-2); }
.r-thumb-empty { display: inline-block; }
.rank10-credits { margin-top: 8px; font-size: 10px; text-align: right; }
.rank10-credits a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.r-name { flex: 1; min-width: 0; line-height: 1.25; }
.r-name b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-name small { color: var(--ink-soft); font-size: 11px; }
.d { font-weight: 900; font-size: 12px; flex: none; }
.d.up { color: var(--up); } .d.dn { color: var(--ocean); }
.d.nw { color: var(--gold); border: 1.5px solid var(--gold); border-radius: 4px; padding: 0 4px; }
.d.hd { color: var(--line); }
@media (min-width: 1460px) {
  .rank10 { position: fixed; right: 18px; top: 130px; width: 250px; margin: 0; z-index: 40; }
}

/* ---------------- K-heritage pride strip ---------------- */
.pride { background: var(--paper-2); border-top: 3px solid var(--ink); padding: 54px 0; }
.pride .sec-head h2 { display: flex; align-items: center; gap: 12px; }
.pride-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.pride-card { background: #fff; border: 3px solid var(--ink); padding: 20px 22px; box-shadow: 6px 6px 0 rgba(205,46,58,.25); }
.pride-card h3 { font-family: var(--serif); font-weight: 900; font-size: 19px; margin-bottom: 8px; color: var(--vermilion-dark); }
.pride-card p { font-size: 14.5px; color: var(--ink-soft); }

.trend-global { font-size: 13.5px; margin-top: 6px; color: var(--ocean); font-weight: 700; }

/* ---------------- ads ---------------- */
.ad-slot { max-width: 780px; margin: 30px auto; }
.ad-slot ins[data-ad-status="unfilled"] { display: none !important; }

/* ---------------- footer ---------------- */
.footer { background: var(--ink); color: var(--paper); margin-top: 60px; border-top: none; position: relative; }
.footer::before { content: ""; display: block; height: 8px; background: var(--saekdong); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding: 46px 24px; }
.foot-desc { font-size: 14px; opacity: .8; margin-top: 10px; max-width: 340px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; font-weight: 600; }
.footer nav a:hover { color: var(--gold); }
.foot-note { font-size: 12.5px; opacity: .65; line-height: 1.8; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.rv.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1060px) {
  .masthead-in { flex-wrap: wrap; }
  .langs { order: 3; }
}
@media (max-width: 900px) {
  .feat-link { grid-template-columns: 1fr; }
  .feat-art { border-right: 0; border-bottom: 3px solid var(--ink); }
  .trend-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .rank-row { grid-template-columns: 56px 1fr 100px; }
  .rank-spark, .rank-go { display: none; }
  .rank-no { font-size: 32px; }
}
@media (max-width: 620px) {
  .masthead-in { flex-wrap: wrap; gap: 12px; }
  .mainnav { order: 3; width: 100%; justify-content: flex-start; gap: 16px; margin-left: 0; }
  .langs { margin-left: auto; }
  .hero { padding: 48px 0 40px; }
  .searchbar { min-width: 100%; padding: 13px 20px; box-shadow: 6px 6px 0 var(--vermilion); }
  .rel-grid { grid-template-columns: 1fr; }
  body { font-size: 15.5px; }
}
