/* 21CC klubi avaleht (mall Klubi). Kõik reeglid on .cc21-club all, et teema stiile mitte mõjutada. */
.cc21-club {
  --ink: #1a1a1a; --paper: #fff; --stone: #f2f3f5; --line: #e1e3e8; --muted: #6b707a;
  --blue: #0a5fd6; --yellow: #f5c400;
  --cond: "Roboto Condensed", "Arial Narrow", "Roboto", sans-serif;
  --harlequin: conic-gradient(from 45deg at 50% 50%, var(--blue) 0 25%, var(--yellow) 0 50%, var(--ink) 0 75%, #fff 0);
  color: var(--ink); padding-bottom: 40px;
}
.cc21-club * { box-sizing: border-box; }
.cc21-club h2, .cc21-club h3, .cc21-club p, .cc21-club dl, .cc21-club dd, .cc21-club figure, .cc21-club blockquote { margin: 0; }
.cc21-club ul, .cc21-club ol { list-style: none; margin: 0; padding: 0; }
.cc21-club ul li, .cc21-club ol li { margin: 0; padding: 0; }
.cc21-club ul li::before, .cc21-club ol li::before { content: none; }
.cc21-club a { text-decoration: none; }
div.cc21-club a:hover { text-decoration: none; }
.cc21-club :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.cc21-club .cc21-kicker { font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
div.cc21-club .cc21-lede { max-width: 680px; margin-bottom: 36px; }
div.cc21-club .cc21-lede, div.cc21-club .cc21-lede p { font-size: 21px; line-height: 1.55; font-weight: 300; }
div.cc21-club .cc21-lede p + p { margin-top: .7em; }
.cc21-club .cc21-block { margin-bottom: 56px; }
div.cc21-club .cc21-block > h2 { font-weight: 300; font-size: 28px; line-height: 1.2; margin-bottom: 20px; }
div.cc21-club .cc21-text, div.cc21-club .cc21-story-text { max-width: 680px; }
div.cc21-club .cc21-text p, div.cc21-club .cc21-story-text p { font-size: 17px; line-height: 1.65; color: #2b2e33; margin: 0 0 14px; }
div.cc21-club .cc21-text { margin-bottom: 24px; }
div.cc21-club .cc21-text a, div.cc21-club .cc21-story-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Numbrid */
.cc21-club .cc21-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 56px; }
.cc21-stats > div { padding: 18px 16px 18px 0; }
.cc21-stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.cc21-club .cc21-stats dd { font-weight: 300; font-size: 38px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cc21-club .cc21-stats dt { font-size: 13px; line-height: 1.4; color: var(--muted); margin-top: 4px; }

/* Lugu */
.cc21-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.cc21-story figure { position: relative; }
.cc21-story img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cc21-story figure::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: var(--harlequin) 0 0 / 12px 12px; }
.cc21-club .cc21-story figcaption { font-size: 12px; color: var(--muted); margin-top: 12px; }
.cc21-club .cc21-name { margin: 10px 0 0; padding: 18px 20px; background: var(--stone); border-left: 4px solid var(--yellow); }
.cc21-club .cc21-name b { display: block; font-family: var(--cond); font-weight: 700; font-size: 22px; letter-spacing: .02em; }
.cc21-club .cc21-name span { font-size: 14px; color: var(--muted); }

.cc21-club .cc21-milestones { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 28px; }
.cc21-club .cc21-milestones li { position: relative; padding: 18px 20px 20px; border: 1px solid var(--line); }
.cc21-milestones li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--harlequin) 0 0 / 10px 10px; }
.cc21-milestones b { display: block; font-weight: 300; font-size: 28px; line-height: 1.1; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.cc21-milestones span { font-size: 14px; line-height: 1.5; color: #3a3d42; }

/* Püramiid */
.cc21-pyr { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cc21-club .cc21-pyr li { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 20px; padding: 16px 22px; color: var(--ink); }
.cc21-club .cc21-pyr li { width: var(--w, 100%); background: var(--blue); color: #fff; }
.cc21-club .cc21-pyr li.cc21-pyr-top { background: var(--ink); }
.cc21-club .cc21-pyr li.cc21-pyr-base { background: var(--yellow); color: var(--ink); }
.cc21-pyr b { font-family: var(--cond); font-weight: 700; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.cc21-pyr small { display: block; font-family: Roboto, sans-serif; font-weight: 300; font-size: 12px; letter-spacing: 0; text-transform: none; opacity: .8; margin-top: 2px; }
.cc21-pyr span { font-size: 14px; line-height: 1.5; }
div.cc21-club .cc21-pyr-note, div.cc21-club .cc21-pyr-note p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 16px 0 0; max-width: 680px; }
div.cc21-club .cc21-pyr-note p { margin: 0; }
div.cc21-club .cc21-pyr-note a { color: var(--ink) !important; border-bottom: 1px solid var(--line); text-decoration: none; }

/* Liikmeks */
.cc21-join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 28px 32px; background: var(--stone); }
div.cc21-club .cc21-join-text h2 { font-weight: 300; font-size: 26px; line-height: 1.2; margin: 0 0 8px; text-transform: none; letter-spacing: 0; text-align: left; }
div.cc21-club .cc21-join-text p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0 0 10px; }
div.cc21-club .cc21-join-text ul { margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
div.cc21-club .cc21-join-text ul li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.45; }
div.cc21-club .cc21-join-text ul li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; background: var(--yellow); transform: rotate(45deg) scale(.75); }
.cc21-fees { background: var(--paper); padding: 20px 22px; align-self: start; }
.cc21-club .cc21-fees h3 { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cc21-club .cc21-fees li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cc21-fees li small { display: block; font-size: 12px; color: var(--muted); }
.cc21-fees li b { font-weight: 400; font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc21-club .cc21-fees p { font-size: 12px; margin-top: 12px; }
div.cc21-club .cc21-join-text a.custom-btn, div.cc21-club .cc21-join-text a.custom-btn:hover { display: inline-block; margin-top: 18px; padding: 10px 18px; background: var(--blue); color: #fff !important; border: 0; border-radius: 0; font-size: 13px; font-weight: 500; font-style: normal; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; transition: background-color .15s; }
div.cc21-club .cc21-join-text a.custom-btn:hover { background: var(--ink); }
div.cc21-club .cc21-join-text a:not(.custom-btn) { color: var(--blue); }

/* Lehed */
.cc21-club .cc21-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cc21-club .cc21-links a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--line); color: var(--ink) !important; transition: border-color .15s, background-color .15s; }
.cc21-club .cc21-links a:hover { border-color: var(--ink); background: var(--stone); }
.cc21-links b { font-weight: 500; font-size: 17px; }
.cc21-links b::after { content: " →"; color: var(--blue); }
.cc21-links span { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Kuuluvus */
.cc21-club .cc21-member-of { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.cc21-member-of b { color: var(--ink); font-weight: 500; }
div.cc21-club .cc21-member-of a { color: var(--ink) !important; border-bottom: 1px solid var(--line); margin-left: auto; }

@media (max-width: 900px) {
  .cc21-club .cc21-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc21-stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cc21-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cc21-story, .cc21-join { grid-template-columns: minmax(0, 1fr); }
  .cc21-club .cc21-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  div.cc21-club .cc21-lede { font-size: 18px; }
  div.cc21-club .cc21-block > h2 { font-size: 24px; }
  .cc21-club .cc21-stats dd { font-size: 30px; }
  .cc21-club .cc21-milestones, .cc21-club .cc21-links { grid-template-columns: minmax(0, 1fr); }
  .cc21-club .cc21-pyr li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px; }
  .cc21-club .cc21-pyr li { width: calc(var(--w, 100%) / 2 + 50%); }
  .cc21-join { padding: 20px 16px; }
  div.cc21-club .cc21-member-of a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .cc21-club * { transition: none !important; } }

/* Seadete paneel (ainult redigeerimisvaates) */
.cc21-club .cc21-settings { margin: 0 0 32px; padding: 18px 20px; border: 2px dashed var(--blue); background: #f5f9ff; font-size: 14px; }
.cc21-club .cc21-settings-title { font-weight: 500; margin: 0 0 12px; }
.cc21-club .cc21-settings-title small { font-weight: 300; color: var(--muted); }
.cc21-club .cc21-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.cc21-club .cc21-settings label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.cc21-club .cc21-settings label small { font-size: 12px; }
.cc21-club .cc21-settings-wide { grid-column: 1 / -1; }
.cc21-club .cc21-settings input[type="text"], .cc21-club .cc21-settings textarea { font: inherit; font-size: 14px; color: var(--ink); padding: 7px 8px; border: 1px solid var(--line); background: #fff; resize: vertical; }
.cc21-club .cc21-settings-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 14px 0 0; }
.cc21-club .cc21-settings-save, .cc21-club .cc21-pick { font: inherit; font-size: 13px; font-weight: 500; padding: 8px 14px; background: var(--ink); color: #fff; border: 0; border-radius: 2px; cursor: pointer; }
.cc21-club .cc21-settings-save:hover, .cc21-club .cc21-pick:hover { background: var(--blue); }
.cc21-club .cc21-settings-msg { color: var(--muted); }
.cc21-club .cc21-pickrow { display: flex; align-items: center; gap: 14px; }
.cc21-club .cc21-thumb { width: 96px; height: 72px; background: var(--stone) center / cover no-repeat; border: 1px solid var(--line); }
@media (max-width: 640px) { .cc21-club .cc21-settings-grid { grid-template-columns: minmax(0, 1fr); } }
