/* LA Times Crossword Answers: IMDb-style layout. No external fonts or libraries. */
:root {
  --ink: #000;
  --text: #1a1a1a;
  --muted: #5f5f5f;
  --line: #e6e6e6;
  --soft: #f5f5f5;
  --yellow: #f5c518;
  --tint: #fff7d6;
  --tint-line: #f2dc84;
  --tint-ink: #6b5200;
  --link: #136cb2;
  --link-h: #0f5a94;
  --blk: #121212;
  --green: #0c7a3d;
  --green-bg: #e8f6ed;
  --radius: 12px;
  --font: Roboto, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 16px/1.6 var(--font);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--link-h); }
img { max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ header */
.hdr { background: var(--blk); color: #fff; position: sticky; top: 0; z-index: 50; }
.hdr-in {
  max-width: 1280px; margin: 0 auto; padding: 8px 20px;
  display: flex; align-items: center; gap: 12px; min-height: 56px;
}
.logo span {
  display: inline-block; background: var(--yellow); color: #000; font-weight: 900;
  font-size: 22px; letter-spacing: -.5px; line-height: 1; padding: 8px 10px; border-radius: 4px;
}
.logo:hover { text-decoration: none; }

.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 4px; font-weight: 500; color: #fff; user-select: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: rgba(255,255,255,.12); }
.menu-panel {
  position: absolute; top: 48px; left: 0; width: 560px; max-width: calc(100vw - 24px);
  background: var(--blk); border: 1px solid #333; border-radius: 8px; padding: 20px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.menu-panel h4 { margin: 0 0 8px; color: var(--yellow); font-size: 14px; text-transform: none; }
.menu-panel a { display: block; color: #fff; padding: 4px 0; font-size: 15px; }
.menu-panel a:hover { color: var(--yellow); text-decoration: none; }

.search { flex: 1; display: flex; align-items: stretch; background: #fff; border-radius: 4px; height: 40px; min-width: 0; overflow: hidden; }
.search select {
  border: 0; border-right: 1px solid var(--line); background: #fff; color: #000; font: 500 14px var(--font);
  padding: 0 10px; cursor: pointer; max-width: 92px;
}
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 12px; font: 16px var(--font); color: #000; background: #fff;
}
.search button { border: 0; background: #fff; color: #555; padding: 0 12px; cursor: pointer; }
.search button:hover { color: #000; }
.search:focus-within { box-shadow: 0 0 0 2px var(--yellow); }

.hdr-links { display: flex; align-items: center; gap: 4px; }
.hdr-links a { color: #fff; font-weight: 500; padding: 8px 12px; border-radius: 4px; white-space: nowrap; }
.hdr-links a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.hdr-links a.today { background: var(--yellow); color: #000; }
.hdr-links a.today:hover { background: #ffd23f; }

/* ------------------------------------------------------------ layout */
.wrap {
  max-width: 1280px; margin: 0 auto; padding: 24px 20px 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start;
}
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 32px; background: #fff; }
.h1 { font-size: 32px; line-height: 1.2; font-weight: 700; margin: 4px 0 12px; color: #1f1f1f; letter-spacing: -.2px; }
.card p { margin: 0 0 16px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 18px !important; }
.kicker { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px !important; }
.cap { margin: 8px 0 20px !important; font-size: 15px; }

/* yellow-bar headings, like "More to explore" */
.bar, .card h2.bar {
  font-size: 24px; line-height: 1.25; font-weight: 700; color: #000; margin: 34px 0 14px;
  padding-left: 12px; border-left: 4px solid var(--yellow);
}
h3.month { margin: 22px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
h2.month { margin: 22px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.more { font-size: 15px; margin-top: 12px !important; }

.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs .sep { margin: 0 6px; }
.crumbs span:last-child { color: var(--muted); }

/* ------------------------------------------------------------ sidebar */
.side .bar { font-size: 28px; margin: 0 0 18px; }
.side .sub { font-size: 22px; margin: 26px 0 12px; font-weight: 700; }
.side .sub a { color: #000; }
.side .sub a:hover { text-decoration: none; color: var(--link); }
.chev { font-size: 1.3em; line-height: 0; position: relative; top: .05em; }
.scard {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; color: var(--text);
}
.scard:hover { background: var(--soft); text-decoration: none; }
.scard-t { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.scard-t b { font-weight: 500; font-size: 16px; line-height: 1.35; color: #000; overflow-wrap: anywhere; }
.scard-t small { color: var(--muted); font-size: 14px; }
.scard-i { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }

/* thumbnails made of CSS: date tile and answer tile */
/* date tile: quiet calendar style, month above the day number */
.datetile {
  flex: none; width: 56px; height: 56px; border-radius: 12px; background: #fafafa; border: 1px solid #ededed;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", var(--font);
}
.datetile small { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #d9534f; }
.datetile b { font-size: 21px; font-weight: 400; color: #555; }
.mini {
  flex: none; width: 72px; height: 72px; border-radius: 10px; background: var(--tint); color: var(--tint-ink);
  border: 1px solid var(--tint-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.mini b { font-size: 17px; font-weight: 800; letter-spacing: .04em; color: #1a1a1a; }

/* ------------------------------------------------------------ hero (home) */
.hero { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 28px; align-items: center; margin: 8px 0 0; }
.hero-img img { width: 100%; border-radius: var(--radius); display: block; }
.hero-tiles {
  background: var(--tint); color: #1a1a1a; border: 1px solid var(--tint-line); border-radius: var(--radius); padding: 28px 22px; text-align: center;
  display: flex; flex-direction: column; gap: 14px; align-items: center; min-height: 240px; justify-content: center;
}
.hero-tiles:hover { text-decoration: none; }
.hero-tiles small { color: var(--tint-ink); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.hero-tiles em { font-style: normal; color: #555; font-size: 14px; }
.hero-t h2 { font-size: 26px; line-height: 1.25; margin: 0 0 6px; }
.hero-t h2 a { color: #000; }
.hero-t h2 a:hover { color: var(--link); text-decoration: none; }
.btn {
  display: inline-block; background: var(--yellow); color: #000 !important; font-weight: 700;
  padding: 11px 22px; border-radius: 999px;
}
.btn:hover { background: #ffd23f; text-decoration: none !important; }
.fig { margin: 16px 0 0; }
.fig img { width: 100%; max-width: 465px; border-radius: var(--radius); display: block; }

/* ------------------------------------------------------------ lists */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 16px; color: var(--text);
}
.row:hover { background: var(--soft); text-decoration: none; }
.row .datetile { width: 48px; height: 48px; border-radius: 10px; }
.row .datetile b { font-size: 19px; }
.row .datetile small { font-size: 9px; }
.row-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.row-t b { font-weight: 500; color: #000; overflow-wrap: anywhere; }
.row-t small { color: var(--muted); font-size: 13px; }
.row-go { color: #999; font-size: 26px; line-height: 1; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 45%; }
.chip {
  display: inline-block; color: #1a1a1a; font-weight: 800; letter-spacing: .06em;
  font-size: 15px; line-height: 1.2; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.chips .chip + .chip::before { content: "/"; margin-right: 6px; color: #999; font-weight: 400; }
.chip.big { font-size: 17px; }

/* puzzle clue list */
.jump { display: flex; gap: 10px; margin: 26px 0 0; }
.jump a {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; color: #000; font-weight: 500; font-size: 15px;
}
.jump a:hover { background: var(--soft); text-decoration: none; }
.jump span { color: var(--muted); margin-left: 4px; }
.clist { list-style: none; margin: 0; padding: 0; }
.clist li {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line);
}
.clist li:last-child { border-bottom: 0; }
.clist a { flex: 1; min-width: 0; color: #000; font-weight: 500; overflow-wrap: anywhere; }
.clist a:hover { color: var(--link); }
.clist .chip { flex: none; }
.num {
  flex: none; min-width: 30px; height: 30px; border-radius: 6px; background: var(--soft); color: var(--muted);
  font: 700 13px/30px var(--font); text-align: center; font-style: normal;
}

/* ------------------------------------------------------------ clue page */
.q { font-size: 20px; line-height: 1.35; font-weight: 500; margin: 6px 0 4px; color: #000; }
.count { background: #f8f3ff; border: 1px solid #bea4de; border-radius: 4px; padding: 0 8px; font-weight: 700; color: #000; }
.answers { list-style: none; margin: 8px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.answers li {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff;
}
.answers li.latest { border-color: #9fd7b3; background: var(--green-bg); }
.alen { color: var(--muted); }
.badge {
  background: var(--green); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 999px;
}
.alink { margin-left: auto; font-size: 14px; }

/* crossword letter tiles */
.tiles { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tiles i {
  font-style: normal; width: 38px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint); color: #1a1a1a; border: 1px solid var(--tint-line); font-weight: 800; font-size: 22px; border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.answers li.latest .tiles i { background: #d3f0de; border-color: #8fd0a8; color: #0b5a2b; }
.hero-tiles .tiles i { background: #fff; color: #1a1a1a; width: 32px; height: 36px; font-size: 19px; }
.answer-hero { margin: 8px 0 14px; }
.answer-hero .tiles i { width: 44px; height: 48px; font-size: 26px; }

.prevnext { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; }
.pn {
  flex: 1; max-width: 48%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; color: #000;
  display: flex; flex-direction: column; min-width: 0;
}
.pn:hover { background: var(--soft); text-decoration: none; }
.pn small { color: var(--link); font-size: 13px; }
.pn b { font-weight: 500; overflow-wrap: anywhere; }
.pn.right { text-align: right; margin-left: auto; }

/* ------------------------------------------------------------ pager, A-Z */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; font-size: 15px; }
.pager span { color: var(--muted); }
.pager a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-weight: 500; }
.pager a:hover { background: var(--soft); text-decoration: none; }
.azbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 22px; }
.azbar a {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; font-weight: 700; color: #000;
}
.azbar a:hover { background: var(--soft); text-decoration: none; }
.azbar a.on { background: var(--yellow); border-color: var(--yellow); }

/* ------------------------------------------------------------ ads */
.ad { text-align: center; margin: 22px 0; min-height: 50px; line-height: 0; overflow: hidden; }
.ad small { display: block; line-height: 1.2; color: #999; font-size: 11px; margin-bottom: 4px; }
.ad-top { margin-top: 8px; }
.sticky_btm {
  position: fixed; left: 0; bottom: 0; width: 100%; height: 51px; z-index: 99999; background: #fff;
  border-top: 2px solid #ddd; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.close-btn {
  position: absolute; right: 4px; top: 2px; padding: 8px 5px; border-radius: 4px; font-size: 13px; cursor: pointer;
  background: #fff; color: #606060; border: 1px solid #ccc; font-weight: 700; z-index: 1000; line-height: 1;
}

/* ------------------------------------------------------------ footer */
.ftr { background: var(--blk); color: #ccc; margin-top: 24px; }
.ftr-in { max-width: 1280px; margin: 0 auto; padding: 32px 20px 40px; text-align: center; }
.ftr-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 14px; }
.ftr-links a { color: #fff; font-weight: 500; }
.ftr-links a:hover { color: var(--yellow); text-decoration: none; }
.ftr p { margin: 0; font-size: 13px; color: #999; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .side { max-width: 640px; }
}
@media (max-width: 768px) {
  .hdr-in { padding: 8px 12px; gap: 8px; }
  .hdr-links a:not(.today) { display: none; }
  .menu summary span { display: none; }
  .search select { max-width: 74px; padding: 0 6px; }
  .wrap { padding: 12px 12px 72px; }
  .card { padding: 18px 16px 24px; border-radius: 10px; }
  .h1 { font-size: 26px; }
  .bar, .card h2.bar { font-size: 21px; }
  .hero { grid-template-columns: 1fr; gap: 14px; }
  .hero-img { max-width: 340px; }
  .menu-panel { grid-template-columns: 1fr; width: 260px; }
  .tiles i { width: 30px; height: 34px; font-size: 18px; }
  .hero-tiles .tiles i { width: 26px; height: 30px; font-size: 16px; }
  .answer-hero .tiles i { width: 34px; height: 38px; font-size: 20px; }
  .chips { max-width: 50%; }
  .alink { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) {
  .logo span { font-size: 18px; padding: 7px 8px; }
  .hdr-links a.today { padding: 7px 10px; font-size: 14px; }
  .tiles i { width: 26px; height: 30px; font-size: 16px; gap: 3px; }
}

/* blog posts + pages */
.post-date { color: var(--muted); font-size: 14px; margin: -4px 0 16px !important; }
.post-img { width: 100%; height: auto; border-radius: var(--radius); margin: 0 0 20px; }
.prose { font-size: 17px; line-height: 1.65; }
.prose h2 { font-size: 24px; margin: 28px 0 10px; }
.prose h3 { font-size: 20px; margin: 22px 0 8px; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose blockquote { margin: 0 0 16px; padding: 4px 16px; border-left: 4px solid var(--line); color: var(--muted); }
.bloglist { display: flex; flex-direction: column; gap: 14px; }
.bl-item { display: flex; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: inherit; }
.bl-item:hover { background: var(--soft); text-decoration: none; }
.bl-item img { width: 140px; height: 94px; object-fit: cover; border-radius: 8px; flex: none; }
.bl-item span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bl-item b { font-size: 18px; color: #000; }
.bl-item small { color: var(--muted); font-size: 13px; }
.bl-item em { font-style: normal; color: var(--text); font-size: 15px; }
@media (max-width: 560px) { .bl-item img { width: 92px; height: 70px; } }

/* sidebar crossword solver */
.solver { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: #fff; margin-bottom: 18px; }
.solver label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 4px; }
.solver input {
  width: 100%; box-sizing: border-box; border: 1px solid #ccc; border-radius: 8px; padding: 9px 10px; margin-bottom: 10px;
  font: 15px var(--font);
}
.solver input.pat { font: 700 18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .18em; text-transform: uppercase; }
.solver .hint { font-size: 12px; color: var(--muted); margin: -6px 0 10px; }
.solver button { width: 100%; border: 1px solid var(--tint-line); border-radius: 8px; background: var(--tint); color: #3d3000; font: 600 15px var(--font); padding: 10px; cursor: pointer; }
.solver button:hover { background: #fdeeb4; }
.solve-res { display: flex; flex-direction: column; gap: 8px; }
.solve-res .sr-a { font: 800 18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; color: #000; }
.solve-res .sr-c { font-size: 14px; color: var(--muted); }
.solve-res > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }

/* homepage: previous days strip */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.days a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border-radius: 12px; color: var(--muted); }
.days a:hover { background: var(--soft); text-decoration: none; }
.days a > small { font-size: 12px; }
@media (max-width: 560px) { .days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* comments */
.comments { margin-top: 18px; }
.cm-n { display: inline-block; font-size: 14px; font-weight: 600; color: var(--muted); background: var(--soft); border-radius: 99px; padding: 2px 9px; vertical-align: middle; }
.cm-msg { padding: 10px 14px; border-radius: 10px; }
.cm-msg.ok { background: var(--green-bg); color: var(--green); }
.cm-msg.err { background: #fdecec; color: #a12622; }
.cm-empty { color: var(--muted); }
.cm-list, .cm-kids { list-style: none; margin: 0; padding: 0; }
.cm { padding: 14px 0; border-top: 1px solid var(--line); }
.cm-list > .cm:first-child { border-top: 0; }
.cm-kids { margin: 10px 0 0 22px; padding-left: 16px; border-left: 2px solid var(--line); }
.cm-kids .cm { padding: 10px 0; border-top: 0; }
.cm-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cm-h b { font-weight: 600; color: #000; }
.cm-h time { color: var(--muted); font-size: 13px; }
.cm-av { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #333; flex: none; }
.cm-b { overflow-wrap: anywhere; line-height: 1.55; padding-left: 40px; }
.cm-kids .cm-b { padding-left: 40px; }
.cm-reply { background: none; border: 0; color: var(--link); cursor: pointer; font: 14px var(--font); padding: 6px 0 0 40px; }
.cm-form { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.cm-form textarea, .cm-form input { width: 100%; box-sizing: border-box; border: 1px solid #ccc; border-radius: 10px; padding: 10px 12px; font: 15px var(--font); background: #fff; }
.cm-form textarea { resize: vertical; min-height: 96px; }
.cm-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.cm-row input { flex: 1 1 180px; }
.cm-row button { border: 0; border-radius: 10px; background: var(--yellow); font: 700 15px var(--font); padding: 10px 18px; cursor: pointer; }
.cm-note { font-size: 13px; color: var(--muted); margin: 8px 0 0 !important; }
.cm-to { font-size: 14px; margin: 0 0 8px !important; }
.cm-to button { background: none; border: 0; color: var(--link); cursor: pointer; font: inherit; }
.cm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
