/* 7MT Madrid — club magazine: white page, Madrid purple, gold rule, big serif matchup. */
:root {
  --white: #ffffff;
  --ink: #1d1a2c;
  --mute: #625d74;
  --purple: #4b2a83;
  --purple-soft: #f4f1fa;
  --gold: #c39a3c;
  --gold-ink: #7a5912;
  --line: #e6e2ee;
  --win: #1d7a47;
  --loss: #b3352b;
  --draw: #7a7488;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--sans); }
a { color: var(--purple); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .45em; }
h1 { font-size: 2.6rem; }
h2 { font-size: 1.6rem; }
.muted, .empty { color: var(--mute); }
.empty { margin: 0; }

/* masthead */
.mast { border-bottom: 1px solid var(--line); }
.mast-in { max-width: 1040px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 1.5rem/1 var(--serif); }
.menu { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu a { flex: none; padding: 8px 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 4px; }
.menu a:hover { background: var(--purple-soft); }
.menu a[aria-current] { color: var(--purple); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
@media (max-width: 720px) { .mast-in { padding-bottom: 6px; } .menu { width: 100%; margin: 0 -10px; } }

/* hero: the next match is the page's one loud element */
.hero { background: var(--purple); color: var(--white); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); }
.hero-in { max-width: 1040px; margin: 0 auto; padding: 44px 16px 48px; }
.hero-k { margin: 0 0 10px; color: #e3d4a8; font-weight: 600; }
.hero-t { font-size: clamp(2.6rem, 8vw, 5.2rem); line-height: .98; margin: 0 0 18px; }
.hero-t span { display: inline-block; }
.hero-t .vs { font-size: .42em; vertical-align: middle; color: #e3d4a8; padding: 0 .2em; }
.hero-w { margin: 0; font-size: 1.1rem; }
.hero-c { margin: 4px 0 18px; color: #d9cdef; }
.hero-a { display: inline-block; background: var(--gold); color: #1d1405; font-weight: 700; padding: 10px 18px; border-radius: 999px; text-decoration: none; }
.hero-a:hover { background: #d8b157; }

/* page */
.page { max-width: 1040px; margin: 0 auto; padding: 32px 16px 48px; }
.page > section, .grid > div > section, .two > section { margin-bottom: 36px; }
.lede { font: 400 1.5rem/1.35 var(--serif); max-width: 34ch; margin: 0 0 28px; }
.head { max-width: 720px; margin-bottom: 28px; }
.head p { color: var(--mute); margin: 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .grid, .two { grid-template-columns: 1fr; gap: 8px; } h1 { font-size: 2.1rem; } }
.card { background: var(--purple-soft); border-radius: 10px; padding: 18px; margin-bottom: 20px; }
.card h2 { font-size: 1.3rem; }
.more { margin: 12px 0 0; font-weight: 600; font-size: .95rem; }
.last-r { font: 400 1.35rem/1.25 var(--serif); margin: 0 0 4px; }
.last p.muted { margin: 0 0 8px; font-size: .92rem; }

/* stories */
.stories { list-style: none; margin: 0; padding: 0; }
.stories li { border-top: 1px solid var(--line); }
.stories li:first-child { border-top: 2px solid var(--gold); }
.stories a { display: grid; gap: 3px; padding: 16px 0; color: var(--ink); text-decoration: none; }
.stories time { font-size: .82rem; color: var(--mute); }
.stories strong { font: 400 1.32rem/1.2 var(--serif); }
.stories span { color: var(--mute); font-size: .95rem; max-width: 62ch; }
.stories em { font-style: normal; font-weight: 600; font-size: .88rem; color: var(--purple); }
.stories a:hover strong { color: var(--purple); }

/* fixtures */
.fx { list-style: none; margin: 0; padding: 0; }
.fx li { display: grid; grid-template-columns: 3.6em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.fx li:last-child { border-bottom: 0; }
.fx-d { font-size: .85rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.fx-o { font-weight: 600; }
.fx-o small { display: block; font-weight: 400; color: var(--mute); font-size: .78rem; }
.fx-o a { color: var(--ink); }
.fx-sc { font-weight: 700; font-variant-numeric: tabular-nums; padding: 3px 9px; border-radius: 4px; background: var(--white); border: 1px solid var(--line); }
.fx-sc.r-M { background: var(--win); color: #fff; border-color: var(--win); }
.fx-sc.r-K { background: var(--loss); color: #fff; border-color: var(--loss); }
.fx-sc.r-S { background: var(--draw); color: #fff; border-color: var(--draw); }
.fx-sc.ko { font-weight: 500; }
.mon { font: 600 .85rem/1 var(--sans); color: var(--gold-ink); margin: 18px 0 2px; }
.mon:first-of-type { margin-top: 0; }

/* tables */
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
th, td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--mute); font-weight: 600; font-size: .82rem; }
.t { text-align: left; width: 100%; white-space: normal; }
.p { font-weight: 700; }
tr.rm td { background: #fbf5e4; font-weight: 700; }
tr.rm td:first-child { box-shadow: inset 3px 0 0 var(--gold); }

/* tops, squad, archive */
.tops { list-style: none; margin: 0; padding: 0; }
.tops li { padding: 6px 0; }
.tops b { font: 400 1.5rem/1 var(--serif); color: var(--purple); display: inline-block; min-width: 1.6em; }
.tops small { color: var(--mute); }
.squad { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 24px; }
.squad li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.squad strong { display: block; font-weight: 600; }
.squad span { font-size: .88rem; color: var(--mute); }
.arch { list-style: none; margin: 0; padding: 0; }
.arch li { padding: 4px 0; }
.arch small { color: var(--mute); }

/* match page */
.mhead { text-align: center; padding: 8px 0 28px; border-bottom: 2px solid var(--gold); margin-bottom: 28px; }
.mhead h1 { font-size: clamp(2.2rem, 7vw, 4rem); margin: 6px 0 10px; }
.m-score { font: 400 4rem/1 var(--serif); color: var(--purple); margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.m-score span { color: var(--gold); padding: 0 .15em; }
.m-score.ko { font-size: 2.4rem; }
.m-score small { font: 500 1rem var(--sans); color: var(--mute); }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 .9em; }
.rep { font: 400 1.4rem/1.3 var(--serif); }
.formrow { color: var(--mute); }
.fm { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 3px; color: #fff; font-weight: 700; font-size: .75rem; margin-left: 3px; }
.fm.r-M { background: var(--win); } .fm.r-S { background: var(--draw); } .fm.r-K { background: var(--loss); }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--purple-soft); }
.foot-in { max-width: 1040px; margin: 0 auto; padding: 28px 16px 36px; color: var(--mute); font-size: .92rem; }
.foot-in p { margin: 0 0 6px; max-width: 70ch; }
.foot-brand { font: 400 1.3rem/1 var(--serif); color: var(--ink); margin-bottom: 10px !important; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px !important; }

/* ---------- v2: lead story, two-column stories, form strip, season numbers ---------- */
.sect { font-size: 2rem; padding-bottom: 12px; margin-bottom: 0; border-bottom: 3px solid var(--ink); }
.stories.lead li:first-child { border-top: 0; }
.stories.lead a { padding: 22px 0 24px; gap: 8px; }
.stories.lead strong { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.04; letter-spacing: -.01em; }
.stories.lead span { font-size: 1.08rem; color: var(--ink); opacity: .8; max-width: 60ch; }
.stories.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.stories.two li, .stories.two li:first-child { border-top: 0; border-bottom: 1px solid var(--line); }
.stories.two strong { font-size: 1.2rem; }
.stories.two span { font-size: .9rem; }
@media (max-width: 640px) { .stories.two { grid-template-columns: 1fr; } }

.fstrip { background: #34195f; color: #fff; }
.fstrip-in { max-width: 1040px; margin: 0 auto; padding: 14px 16px 16px; display: flex; align-items: center; gap: 20px; }
.fstrip h2 { flex: none; margin: 0; font-size: 1.1rem; color: #e3d4a8; width: 6.5em; line-height: 1.1; }
.fstrip ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; flex: 1; }
.fstrip li > a, .fstrip li > .fs-r { color: inherit; text-decoration: none; }
.fstrip li { border-radius: 8px; background: rgba(255,255,255,.07); border-top: 4px solid var(--draw); }
.fstrip li.r-M { border-top-color: #3fbf7f; }
.fstrip li.r-K { border-top-color: #ff6b5e; }
.fstrip li > a, .fstrip li:not(:has(a)) { display: grid; padding: 8px 10px 10px; }
.fstrip li > a:hover { background: rgba(255,255,255,.08); border-radius: 0 0 8px 8px; }
.fs-r { font-size: .78rem; color: #d9cdef; }
.fs-s { font: 400 1.7rem/1.05 var(--serif); font-variant-numeric: tabular-nums; }
.fs-o { font-size: .82rem; color: #d9cdef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .fstrip-in { display: block; }
  .fstrip h2 { width: auto; margin-bottom: 8px; }
  .fstrip ol { grid-template-columns: repeat(5, minmax(84px, 1fr)); overflow-x: auto; }
}

.nums dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
.nums div { display: grid; }
.nums dt { order: 2; font-size: .8rem; color: var(--mute); }
.nums dd { margin: 0; font: 400 2rem/1 var(--serif); color: var(--purple); font-variant-numeric: tabular-nums; }
table.short th:nth-child(4), table.short td:nth-child(4), table.short th:nth-child(5), table.short td:nth-child(5) { display: none; }
table.short .t { white-space: nowrap; }

/* ---------- buttons to 7mt-news.com ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 18px;
  background: var(--purple); color: #fff; border-radius: 999px; font: 700 .98rem/1.15 var(--sans); text-decoration: none; text-align: center; }
.btn::after { content: "›"; font-size: 1.3em; line-height: 1; margin-top: -2px; }
.btn:hover { background: #3a1f68; }
.btn-big { min-height: 50px; padding: 13px 24px; font-size: 1.04rem; }
.btn-wide { display: flex; width: 100%; margin-top: 12px; }
.btn-gold { background: var(--gold); color: #1d1405; }
.btn-gold:hover { background: #d8b157; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-ghost-p { background: transparent; color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); }
.btn-ghost-p:hover { background: var(--purple-soft); }
.btn-top { flex: none; min-height: 38px; padding: 8px 16px; background: var(--gold); color: #1d1405; }
.btn-top:hover { background: #d8b157; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.mhead .btns { justify-content: center; }
.hero .btns { margin-top: 0; }
.empty-cta { display: grid; gap: 10px; justify-items: start; }
.stories em { display: inline-block; justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--purple-soft); }
.stories a:hover em { background: var(--purple); color: #fff; }
.stories.lead em { padding: 8px 18px; background: var(--purple); color: #fff; font-size: .95rem; }

.card-cta { background: var(--purple); color: #fff; }
.card-cta h2 { color: #fff; }
.card-cta p { margin: 0; color: #d9cdef; }

.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--purple-soft); border-left: 5px solid var(--gold); border-radius: 10px; padding: 20px 22px; margin: 0 0 32px; }
.cta-box h2 { margin: 0 0 4px; font-size: 1.5rem; }
.cta-box p { margin: 0; color: var(--mute); max-width: 56ch; }

.band { background: var(--purple); color: #fff; border-top: 4px solid var(--gold); }
.band-in { max-width: 1040px; margin: 0 auto; padding: 30px 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.band h2 { margin: 0 0 4px; font-size: 1.9rem; }
.band p { margin: 0; color: #d9cdef; max-width: 60ch; }

.sticky { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--purple); color: #fff;
  font: 700 1rem/1.15 var(--sans); text-decoration: none; text-align: center; border-top: 3px solid var(--gold); box-shadow: 0 -4px 14px rgba(29,26,44,.2); }
.sticky::after { content: "›"; font-size: 1.3em; }
.sticky:hover { background: #3a1f68; }
body { padding-bottom: 62px; }
@media (min-width: 900px) {
  .sticky { left: auto; right: 22px; bottom: 22px; border-radius: 999px; border: 2px solid var(--gold); padding: 12px 22px; min-height: 0; box-shadow: 0 8px 24px rgba(29,26,44,.3); }
  body { padding-bottom: 0; }
}

/* ---------- v3: main-site logo ---------- */
.brand { gap: 10px; }
.brand img { display: block; height: 36px; width: auto; }
.brand span { font: 400 1.55rem/1 var(--serif); color: var(--purple); padding-left: 10px; border-left: 2px solid var(--gold); }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { display: block; height: 28px; width: auto; }
.foot-brand span { font: 400 1.25rem/1 var(--serif); color: var(--purple); }

/* ---------- v3: phones ---------- */
@media (max-width: 720px) {
  .mast-in { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px 0; }
  .mast-in .btn-top { position: static; margin-left: auto; min-height: 36px; padding: 7px 14px; }
  .brand img { height: 28px; }
  .brand span { font-size: 1.2rem; padding-left: 8px; }
  .menu { order: 3; width: auto; flex: 1 1 100%; margin: 4px -14px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    border-top: 1px solid var(--line); overflow: visible; }
  .menu a { text-align: center; padding: 11px 4px; font-size: .92rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .menu a:nth-child(3n+2) { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .menu a[aria-current] { color: var(--purple); font-weight: 700; background: var(--purple-soft); box-shadow: inset 0 -3px 0 var(--gold); }
  .mast { border-bottom: 0; }

  .hero-in { padding: 26px 16px 30px; }
  .hero-k { font-size: .92rem; }
  .hero-t { font-size: clamp(2.2rem, 11vw, 3rem); margin-bottom: 12px; }
  .hero-w { font-size: 1rem; }
  .hero-c { margin-bottom: 16px; }
  .hero .btns { flex-direction: column; }
  .hero .btns .btn { width: 100%; }

  .fstrip-in { padding: 12px 14px 14px; }
  .fstrip h2 { font-size: 1rem; }
  .fstrip ol { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .fstrip li > a, .fstrip li:not(:has(a)) { padding: 6px 6px 8px; text-align: center; }
  .fs-r { display: none; }
  .fs-s { font-size: 1.3rem; }
  .fs-o { font-size: .7rem; }

  .page { padding: 22px 14px 36px; }
  .sect { font-size: 1.6rem; }
  .lede { font-size: 1.25rem; }
  .stories a { padding: 14px 0; }
  .stories strong { font-size: 1.18rem; }
  .stories span { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .stories.lead strong { font-size: 1.75rem; }
  .card { padding: 16px; border-radius: 8px; margin-bottom: 14px; }
  .nums dd { font-size: 1.7rem; }
  .cta-box { padding: 16px; margin-bottom: 24px; }
  .cta-box h2 { font-size: 1.3rem; }
  .cta-box .btn, .band .btn { width: 100%; }
  .band-in { padding: 22px 14px; }
  .band h2 { font-size: 1.5rem; }
  .mhead h1 { font-size: 2rem; }
  .m-score { font-size: 3rem; }
  .btns .btn-big { flex: 1 1 100%; }
  th, td { padding: 8px 4px; }
}
@media (max-width: 480px) { .wide-only { display: none; } }
.btn-top { gap: 0; }
.btn-top::after { margin-left: 8px; }

/* v4: the hero matchup is a <p> now (the page H1 is the news heading) */
.hero-t { font-family: var(--serif); font-weight: 400; }
h1.sect { font-size: 2rem; }
@media (max-width: 720px) { h1.sect { font-size: 1.5rem; } }

/* v5: English / Indonesian switch (masthead + footer) */
.lang-s { display: none; }
.mast .lang { flex: none; margin-left: auto; display: inline-flex; align-items: center; min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font-weight: 500; font-size: .95rem; text-decoration: none; }
.mast .lang:hover { border-color: var(--purple); color: var(--purple); }
.mast .lang[lang="id"] .lang-l { display: none; }  /* "Bahasa Indonesia" does not fit next to the menu: "ID" */
.mast .lang[lang="id"] .lang-s { display: inline; }
@media (max-width: 720px) {
  .mast .lang-l { display: none; }
  .mast .lang-s { display: inline; }
}
