/* The Chronicle (2026-11-17, the owner's pick HI6): /chronicle, /chronicle/{slug} and the "In the Chronicle" line of a
   Pick page. Every class starts .chr-. Colours are the site's variables (style.css :root) or plain colours that
   tools/build_dark_css.php turns dark; rerun it after changing a colour here. */

.chr-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.chr-head { padding: .8rem 0 .4rem; max-width: 760px; }
.chr-head h1 { color: var(--navy); font-size: clamp(2rem, 4.4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: .35rem; }
.chr-head > p { color: #4f5d78; font-size: 1.06rem; line-height: 1.6; margin-top: .7rem; }
.chr-head .chr-admin { margin-top: .8rem; }
.chr-figs { display: flex; flex-wrap: wrap; gap: .4rem 2rem; list-style: none; margin: 1rem 0 0; padding: 0; color: #566480; font-size: .95rem; }
.chr-figs b { color: var(--navy); font-size: 1.3rem; font-weight: 800; margin-right: .2rem; }
.chr-empty { color: var(--muted); margin: 2rem 0; }

/* the kind of an event */
.chr-tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: .16rem .55rem; border-radius: 99px; color: #4a5568; background: #edf0f5; }
.chr-k-ship { color: #1d4fd7; background: #eaf0fd; }
.chr-k-war { color: #7a5c15; background: #fbf1d8; }
.chr-k-rob { color: #9b2c2c; background: #fde8e8; }
.chr-k-forg { color: #6a3fb5; background: #efe8fb; }
.chr-k-burn { color: #9a4413; background: #fdeee3; }
.chr-k-with { color: #1f7a4d; background: #e5f3eb; }
.chr-k-art { color: #1e2f4d; background: #e7ebf3; }

/* the filter */
.chr-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 .3rem; }
.chr-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .35rem .85rem; border-radius: 99px; border: 1px solid #d5ddea; background: var(--card); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.chr-chip span { font-size: .8rem; font-weight: 700; color: var(--muted); background: var(--row); border-radius: 99px; padding: 0 .45rem; min-width: 1.5rem; text-align: center; }
.chr-chip:hover { border-color: var(--accent); }
.chr-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chr-chip[aria-pressed="true"] span { background: rgba(255,255,255,.18); color: #fff; }
.chr-chip:focus-visible, .chr-tl a:focus-visible, .chr-ba a:focus-visible, .chr-art a:focus-visible, .chr-sec a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.chr-showing { color: var(--muted); font-size: .88rem; min-height: 1.4rem; margin: .3rem 0 0; }

/* the time line */
.chr-tl { list-style: none; position: relative; margin: 1rem 0 2rem; padding: 0; }
.chr-tl::before { content: ""; position: absolute; left: 152px; top: .5rem; bottom: .5rem; width: 2px; background: #cfd9ea; }
.chr-dec { position: relative; display: grid; grid-template-columns: 140px 26px minmax(0, 1fr); align-items: center; margin: 1.6rem 0 .6rem; }
.chr-dec:first-child { margin-top: .4rem; }
.chr-dec b { grid-column: 1; text-align: right; color: var(--muted);   /* was #6b788d, a little faint on the page (PG7, 17 Nov 2026) */ font-size: .82rem; font-weight: 800; letter-spacing: .14em; }
.chr-dec i { grid-column: 2; justify-self: center; width: 12px; height: 2px; background: #9fb0cc; }
.chr-dec hr { grid-column: 3; width: 100%; border: 0; border-top: 1px solid #dde4ef; margin: 0; }
.chr-ev { position: relative; display: grid; grid-template-columns: 140px 26px minmax(0, 1fr); align-items: start; margin-bottom: 1.1rem; scroll-margin-top: 1rem; }
.chr-when { grid-column: 1; text-align: right; padding-top: 1.05rem; color: var(--navy); font-weight: 800; font-size: .98rem; line-height: 1.3; margin: 0; }
.chr-dot { grid-column: 2; justify-self: center; margin-top: 1.3rem; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent); position: relative; z-index: 1; }
.chr-ev-art .chr-dot { border-color: #6a3fb5; }
.chr-card { grid-column: 3; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.3rem; background: var(--card); border-radius: 16px; box-shadow: 0 1px 2px rgba(30,47,77,.03), 0 12px 32px rgba(30,47,77,.05); padding: 1.1rem 1.25rem 1.15rem; }
.chr-card > .chr-body:only-child { grid-column: 1 / -1; }
.chr-pic { margin: 0; }
.chr-pic img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 4px 12px rgba(30,47,77,.14); background: #f2f4f8; }
.chr-pic-art { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: #edf1f7; }
.chr-pic-art img { height: 100%; object-fit: cover; box-shadow: none; border-radius: 0; }
.chr-pic figcaption { margin-top: .5rem; font-size: .84rem; line-height: 1.4; color: var(--muted); }
.chr-pic figcaption b { color: var(--ink); font-weight: 700; }
.chr-noimg { width: 100%; height: auto; }
.chr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .85rem; color: var(--muted); margin: 0; }
.chr-card h2 { font-size: 1.18rem; font-weight: 800; line-height: 1.28; margin: .45rem 0 0; color: var(--ink); }
.chr-card h2 a { color: inherit; text-decoration: none; }
.chr-card h2 a:hover { color: var(--accent); text-decoration: underline; }
.chr-words { margin-top: .5rem; color: #33405a; font-size: .95rem; line-height: 1.6; }
.chr-words p { margin: 0; }
.chr-words p + p { margin-top: .7rem; }
.chr-words strong { color: var(--ink); }
.chr-from { margin: .55rem 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.chr-from a { color: var(--muted); }
.chr-also { margin: .35rem 0 0; font-size: .84rem; color: var(--muted); }
.chr-also a { color: var(--muted); }
.chr-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: .25rem; font-weight: 700; font-size: .93rem; text-decoration: none; }
.chr-more:hover { text-decoration: underline; }
.chr-hid { display: none !important; }

/* one event */
.chr-art { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); margin-top: .5rem; overflow: hidden; }
.chr-art-head { padding: 1.8rem 2.1rem 1.3rem; max-width: 880px; }
.chr-art-head h1 { color: var(--navy); font-size: clamp(1.7rem, 3.6vw, 2.45rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: .65rem; }
.chr-facts { display: flex; flex-wrap: wrap; gap: .5rem 2.2rem; margin: 1.1rem 0 0; }
.chr-facts div { min-width: 0; }
.chr-facts dt { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chr-facts dd { font-weight: 700; color: var(--navy); font-size: 1rem; margin: 0; }
.chr-nw { white-space: nowrap; }
.chr-intro { margin-top: 1.1rem; max-width: 66ch; font-size: 1.05rem; line-height: 1.7; color: #22304b; }
.chr-intro p + p { margin-top: .8rem; }
.chr-cover { margin: 0; background: #f2f5fa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.6rem 2.1rem 1rem; }
.chr-cover img { display: block; width: min(560px, 100%); height: auto; margin: 0 auto; border-radius: 6px; box-shadow: 0 8px 22px rgba(30,47,77,.18); }
.chr-cover figcaption { text-align: center; color: var(--muted); font-size: .86rem; margin-top: .8rem; }
.chr-story { padding: 1.8rem 2.1rem 2.2rem; }
.chr-story h2, .chr-sec h2 { color: var(--navy); font-size: 1.3rem; font-weight: 800; }
.chr-story .chr-from { margin: .35rem 0 1rem; }
.chr-story .chr-words { margin: 0; }
.chr-story .chr-words p { font-size: 1.05rem; line-height: 1.78; color: #22304b; max-width: 66ch; }
.chr-story .chr-words p + p { margin-top: 1rem; }
.chr-sec { margin-top: 1.4rem; background: var(--card); border-radius: 16px; padding: 1.4rem 1.6rem 1.6rem; box-shadow: var(--shadow); }
.chr-lede { color: var(--muted); font-size: .95rem; margin: .2rem 0 1.1rem; }
.chr-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.chr-nc { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.1rem; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.chr-nc-pic img { display: block; width: 100%; height: auto; border-radius: 5px; box-shadow: 0 4px 12px rgba(30,47,77,.14); }
.chr-nc h3 { font-size: 1.02rem; font-weight: 800; margin: .1rem 0 0; }
.chr-nc h3 a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.chr-nc h3 a:hover { color: var(--accent); text-decoration: underline; }
.chr-k { font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.chr-q { font-size: .92rem; line-height: 1.55; color: #33405a; margin: .45rem 0 0; }
.chr-src { list-style: none; counter-reset: chrs; display: grid; gap: .7rem; margin: .8rem 0 0; padding: 0; }
.chr-src li { counter-increment: chrs; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .4rem; font-size: .96rem; line-height: 1.5; }
.chr-src li::before { content: counter(chrs); width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; font-size: .82rem; display: grid; place-items: center; }
.chr-src li span { display: block; color: var(--muted); font-size: .88rem; }
.chr-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.chr-ba > a, .chr-ba > div { display: block; border-radius: 14px; padding: 1rem 1.15rem; text-decoration: none; min-height: 44px; }
.chr-ba > a { background: #f6f8fc; color: var(--ink); }
.chr-ba > a:hover { background: var(--accent-soft); }
.chr-ba small { display: block; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chr-ba b { display: block; font-size: 1.05rem; margin-top: .2rem; }
.chr-ba span { display: block; color: var(--muted); font-size: .88rem; margin-top: .1rem; }
.chr-ba > div { border: 1px dashed #cfd9ea; color: var(--muted); font-size: .93rem; }
.chr-ba > div a { font-weight: 700; }
.chr-ba .chr-end { text-align: right; }

/* the line on a Pick page */
.chr-links { margin: .8rem 0 0; font-size: .92rem; line-height: 1.6; color: var(--muted); }
.chr-links strong { color: var(--navy); }
.chr-links-when { white-space: nowrap; }

/* the admin pages */
.chr-linkbtn { background: none; border: none; color: var(--accent); cursor: pointer; font: inherit; font-size: .9rem; padding: 0; text-decoration: underline; margin-right: .2rem; }
.chr-adm-notes { display: grid; gap: .7rem; margin-top: .6rem; }
.chr-adm-note { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .3rem .8rem; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; }
.chr-adm-note .chr-adm-name { grid-column: 2; font-weight: 700; }
.chr-adm-note input[type="number"] { width: 4rem; }
.chr-adm-note textarea { grid-column: 2; }
.chr-adm-note label.check-label { grid-column: 2; }

@media (max-width: 1000px) {
  .chr-card { grid-template-columns: 200px minmax(0, 1fr); }
  .chr-notes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .chr-tl::before { left: 6px; }
  .chr-dec, .chr-ev { grid-template-columns: 14px minmax(0, 1fr); column-gap: .9rem; }
  .chr-dec b { grid-column: 2; text-align: left; grid-row: 1; }
  .chr-dec i { grid-column: 1; }
  .chr-dec hr { display: none; }
  .chr-when { grid-column: 2; grid-row: 1; text-align: left; padding-top: 0; margin-bottom: .45rem; }
  .chr-dot { grid-column: 1; grid-row: 1; margin-top: .3rem; justify-self: start; }
  .chr-card { grid-column: 2; grid-row: 2; grid-template-columns: minmax(0, 1fr); gap: .9rem; padding: 1rem; }
  .chr-pic { max-width: 320px; }
  .chr-chip { min-height: 44px; }
  .chr-art-head, .chr-story { padding-left: 1.1rem; padding-right: 1.1rem; }
  .chr-cover { padding: 1.1rem 1.1rem .8rem; }
  .chr-sec { padding: 1.2rem 1.1rem 1.3rem; }
  .chr-nc { grid-template-columns: minmax(0, 1fr); }
  .chr-nc-pic img { max-width: 320px; }
  .chr-ba { grid-template-columns: minmax(0, 1fr); }
  .chr-ba .chr-end { text-align: left; }
  .chr-story .chr-words p { font-size: 1rem; }
  /* a larger press area for links inside lines of text, without moving the text */
  .chr-from a, .chr-also a, .chr-facts a, .chr-links a, .chr-card h2 a, .chr-nc h3 a, .chr-ba > div a { position: relative; }
  .chr-from a::after, .chr-also a::after, .chr-facts a::after, .chr-links a::after, .chr-card h2 a::after, .chr-nc h3 a::after, .chr-ba > div a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
  .chr-also, .chr-facts dd, .chr-links { line-height: 2; }
}
