/* FAQ, journal and reader components. Shared tokens live in unicorn.css. */

/* Homepage FAQ */
.uc-help-section { padding: 90px 0; }
.uc-help-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 90px; align-items: start; }
.uc-help-intro h2 { font-size: 38px; margin: 12px 0 15px; }
.uc-help-intro > p { font-size: 14px; color: var(--uc-muted); }
.uc-help-contact { padding: 25px; margin-top: 32px; background: #f4f7fd; border: 1px solid #e5ecf8; border-radius: 16px; }
.uc-help-contact > img { width: 38px; height: 38px; object-fit: contain; margin-bottom: 18px; }
.uc-help-contact h3 { font-size: 17px; margin-bottom: 10px; }
.uc-help-contact p { color: var(--uc-muted); font-size: 12px; line-height: 1.9; margin-bottom: 21px; }
.uc-help-contact a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 16px; border-top: 1px solid #dfe7f5; color: var(--uc-primary); font-size: 12px; font-weight: 600; }
.uc-help-list { display: grid; gap: 12px; }
.uc-help-item { border: 1px solid var(--uc-line); border-radius: 12px; background: white; overflow: hidden; }
.uc-help-item[open] { border-color: #c8d8ff; background: #f8faff; box-shadow: 0 8px 30px rgb(34 74 154 / 4%); }
.uc-help-item summary { display: flex; align-items: center; gap: 19px; padding: 22px 24px; list-style: none; cursor: pointer; }
.uc-help-item summary::-webkit-details-marker { display: none; }
.uc-help-number { color: #9cabc3; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.uc-help-question { flex: 1; font-size: 15px; font-weight: 600; line-height: 1.7; }
.uc-help-toggle { position: relative; flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px; background: #f0f4fb; }
.uc-help-toggle::before, .uc-help-toggle::after { content: ""; position: absolute; top: 11px; left: 7px; width: 10px; height: 1.5px; background: #6c83ab; }
.uc-help-toggle::after { transform: rotate(90deg); }
.uc-help-item[open] .uc-help-toggle { background: var(--uc-primary); }
.uc-help-item[open] .uc-help-toggle::before { background: white; }
.uc-help-item[open] .uc-help-toggle::after { display: none; }
.uc-help-item[open] .uc-help-number { color: var(--uc-primary); }
.uc-help-answer { padding: 0 67px 23px 58px; color: var(--uc-text); font-size: 14px; line-height: 1.95; }

/* Journal and archive */
.uc-journal { background: #fff; }
.uc-journal-heading { position: relative; border-bottom: 1px solid var(--uc-line); background: linear-gradient(110deg, #fafcff, #f0f5ff); }
.uc-journal-title-row { display: flex; align-items: center; justify-content: space-between; gap: 60px; padding: 14px 0 50px; }
.uc-journal-eyebrow { color: #6d86b4; font-size: 11px; letter-spacing: .12em; }
.uc-journal-title-row h1 { font-size: clamp(32px, 4vw, 50px); margin: 12px 0 18px; line-height: 1.4; overflow-wrap: anywhere; }
.uc-journal-description { max-width: 760px; color: var(--uc-muted); font-size: 14px; }
.uc-journal-description p + p { margin-top: 8px; }
.uc-journal-total { flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; min-width: 130px; padding-left: 35px; border-left: 1px solid #dce5f5; }
.uc-journal-total strong { color: var(--uc-primary); font-size: 50px; line-height: 1.1; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.uc-journal-total > span { margin-top: 12px; color: #91a1bc; font-size: 11px; letter-spacing: .1em; }
.uc-journal-list { padding: 34px 0 80px; }
.uc-journal-categories { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-bottom: 28px; border-bottom: 1px solid var(--uc-line); }
.uc-journal-categories a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 17px; color: #7b88a0; background: #f5f7fb; border: 1px solid transparent; border-radius: 7px; font-size: 12px; line-height: 1.6; }
.uc-journal-categories a > span { font-size: 10px; opacity: .65; font-variant-numeric: tabular-nums; }
.uc-journal-categories a[aria-current] { background: var(--uc-primary); color: white; }
.uc-journal-categories a:hover { border-color: #bdd0fd; }
.uc-journal-status { display: flex; justify-content: space-between; align-items: center; padding: 25px 0; }
.uc-journal-status p { font-size: 13px; font-weight: 600; color: #526481; }
.uc-journal-status > span { font-size: 11px; color: #99a4b6; }
.uc-journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.uc-story { min-width: 0; display: flex; flex-direction: column; }
.uc-story-image { position: relative; display: block; aspect-ratio: 1.65; overflow: hidden; border-radius: 12px; background: #edf3fc; }
.uc-story-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.uc-story:hover .uc-story-image > img { transform: scale(1.04); }
.uc-story-arrow { position: absolute; right: 15px; bottom: 15px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #365d9d; background: rgb(255 255 255 / 95%); font-size: 17px; box-shadow: 0 3px 10px #17243b0a; }
.uc-story-placeholder { display: flex; width: 100%; height: 100%; flex-direction: column; justify-content: center; align-items: center; gap: 18px; background: radial-gradient(ellipse at 90% 10%, #e0ebff, transparent 70%), #f1f5fc; }
.uc-story-placeholder img { width: 58%; max-width: 230px; height: auto; }
.uc-story-placeholder > span { font-size: 10px; color: #96a9cc; letter-spacing: .12em; }
.uc-story:nth-child(3n+2) .uc-story-placeholder { background: radial-gradient(ellipse at 90% 10%, #e4e4fa, transparent 70%), #f4f4fc; }
.uc-story:nth-child(3n+3) .uc-story-placeholder { background: radial-gradient(ellipse at 90% 10%, #dcecf2, transparent 70%), #f0f7fa; }
.uc-story-body { display: flex; flex: 1; flex-direction: column; padding-top: 19px; }
.uc-story-meta { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 12px; color: #98a4b8; font-size: 10px; }
.uc-story-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 65%; color: #6a86b8; }
.uc-story-meta time { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.uc-story h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; text-overflow: ellipsis; overflow-wrap: anywhere; font-size: 19px; line-height: 1.6; margin-bottom: 12px; font-weight: 600; }
.uc-story h2 a:hover { color: var(--uc-primary); }
.uc-story-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; text-overflow: ellipsis; overflow-wrap: anywhere; white-space: normal; height: 3.8em; margin-bottom: 20px; font-size: 13px; line-height: 1.9; color: #8996ac; }
.uc-story-link { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; margin-top: auto; border-top: 1px solid var(--uc-line); color: #6d819f; font-size: 11px; }
.uc-story-link > span { font-size: 17px; color: #8fa9d1; }
.uc-story-link:hover { color: var(--uc-primary); }

/* Article reader */
.uc-reader { padding-bottom: 75px; background: #f6f8fc; }
.uc-reader-head { background: #fff; border-bottom: 1px solid var(--uc-line); padding-bottom: 45px; }
.uc-reader-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.uc-reader-categories a { display: inline-flex; padding: 3px 10px; border-radius: 4px; background: #eff4ff; color: #5d7cba; font-size: 11px; }
.uc-reader-head h1 { max-width: 1000px; font-size: clamp(27px, 3.2vw, 42px); line-height: 1.55; margin: 20px 0 24px; overflow-wrap: anywhere; }
.uc-reader-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; font-size: 11px; color: #95a0b3; }
.uc-reader-meta-label { color: #72819a; }
.uc-reader-updated { padding-left: 16px; margin-left: 4px; border-left: 1px solid var(--uc-line); }
.uc-reader-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 35px; padding-top: 35px; align-items: start; }
.uc-reader-paper { min-width: 0; padding: 42px 48px 30px; border: 1px solid #e7ecf5; border-radius: 12px; background: white; }
.uc-reader-cover { margin: 0 0 35px; overflow: hidden; border-radius: 8px; }
.uc-reader-cover img { width: 100%; height: auto; }
.uc-reader-content { min-width: 0; }
.uc-reader-content h2, .uc-reader-content h3 { scroll-margin-top: 115px; }
.uc-reader-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 35px; }
.uc-reader-tags > span { font-size: 11px; color: #a0acc0; margin-right: 5px; }
.uc-reader-tags a { font-size: 11px; color: #7f94b5; background: #f3f6fb; border-radius: 4px; padding: 3px 9px; }
.uc-reader-end { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 42px 0 30px; }
.uc-reader-end > span { width: 35px; height: 1px; background: #e3eaf5; }
.uc-reader-end > p { font-size: 10px; color: #b2bdcf; letter-spacing: .15em; }
.uc-reader-neighbors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding-top: 24px; border-top: 1px solid var(--uc-line); }
.uc-reader-neighbors > div + div { padding-left: 20px; border-left: 1px solid var(--uc-line); }
.uc-reader-neighbors a { display: block; }
.uc-reader-neighbors small { display: block; color: #9ba8bd; font-size: 10px; margin-bottom: 10px; }
.uc-reader-neighbors span { display: block; font-size: 13px; line-height: 1.8; color: #576f97; overflow-wrap: anywhere; }
.uc-reader-neighbors a:hover span { color: var(--uc-primary); }
.uc-reader-return { display: inline-flex; color: #8d9cb4; font-size: 11px; padding-top: 25px; }
.uc-reader-return:hover { color: var(--uc-primary); }
.uc-reader-aside { position: sticky; top: 108px; display: grid; gap: 22px; }
.uc-reader-toc { padding: 24px 22px; border: 1px solid var(--uc-line); border-radius: 12px; background: white; }
.uc-reader-toc h2 { display: flex; align-items: center; gap: 10px; color: #4e6386; font-size: 13px; letter-spacing: 0; margin-bottom: 18px; }
.uc-reader-toc h2 > span { color: #91a9d4; font-size: 12px; }
.uc-reader-toc ol { display: grid; gap: 4px; max-height: min(48vh, 430px); overflow-y: auto; overscroll-behavior: contain; list-style: none; padding: 0; scrollbar-width: thin; }
.uc-reader-toc a { display: block; padding: 7px 11px; border-left: 2px solid #edf1f7; font-size: 11px; color: #90a0b8; line-height: 1.75; overflow-wrap: anywhere; }
.uc-reader-toc a:hover, .uc-reader-toc a[aria-current] { color: var(--uc-primary); background: #f6f9ff; border-color: var(--uc-primary); }
.uc-reader-toc .is-subheading a { padding-left: 22px; font-size: 10px; }
.uc-reader-support { padding: 25px; background: #edf3ff; border: 1px solid #e0e9fc; border-radius: 12px; }
.uc-reader-support > img { width: 36px; height: 36px; object-fit: contain; margin-bottom: 17px; }
.uc-reader-support h2 { font-size: 17px; margin-bottom: 11px; }
.uc-reader-support p { font-size: 12px; color: #8699b9; line-height: 1.9; margin-bottom: 18px; }
.uc-reader-support a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 11px; margin-top: 11px; border-top: 1px solid #dce5f7; color: #5b7eba; font-size: 11px; }
.uc-reader-related { padding-top: 60px; }
.uc-reader-related-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 27px; }
.uc-reader-related-heading h2 { font-size: 24px; }
.uc-reader-related-heading > a { font-size: 12px; color: #7f94b5; }

@media (max-width: 1200px) {
  .uc-help-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 55px; }
  .uc-journal-grid { gap: 35px 22px; }
  .uc-story h2 { font-size: 18px; }
  .uc-reader-layout { grid-template-columns: minmax(0, 1fr) 235px; gap: 25px; }
  .uc-reader-paper { padding: 35px; }
  .uc-reader-support { padding: 22px; }
}
@media (max-width: 1000px) {
  .uc-help-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 35px; }
  .uc-help-intro h2 { font-size: 32px; }
  .uc-help-contact { padding: 22px; }
  .uc-help-item summary { padding: 20px; gap: 14px; }
  .uc-help-question { font-size: 14px; }
  .uc-help-answer { padding: 0 50px 20px; font-size: 13px; }
  .uc-story h2 { font-size: 17px; }
  .uc-reader-layout { grid-template-columns: minmax(0, 1fr); }
  .uc-reader-aside { position: static; grid-row: 1; }
  .uc-reader-support { display: none; }
  .uc-reader-toc { padding: 18px 23px; }
  .uc-reader-toc h2 { margin-bottom: 10px; }
  .uc-reader-toc ol { max-height: 180px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 20px; }
  .uc-reader-paper { padding: 40px 48px; }
}
@media (max-width: 782px) {
  .uc-help-section { padding: 60px 0; }
  .uc-help-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .uc-help-intro { display: grid; grid-template-columns: 1fr 240px; column-gap: 30px; align-items: start; }
  .uc-help-intro > .uc-kicker, .uc-help-intro > h2, .uc-help-intro > p { grid-column: 1; }
  .uc-help-contact { grid-column: 2; grid-row: 1 / 4; margin: 0; padding: 18px 20px; }
  .uc-help-contact > img, .uc-help-contact p { display: none; }
  .uc-help-contact h3 { font-size: 14px; margin-bottom: 13px; }
  .uc-help-contact a { padding-top: 12px; font-size: 11px; }
  .uc-help-intro h2 { margin: 8px 0 12px; }
  .uc-journal-title-row { gap: 30px; padding: 8px 0 35px; }
  .uc-journal-title-row h1 { font-size: 36px; }
  .uc-journal-description { font-size: 13px; }
  .uc-journal-total { padding-left: 25px; min-width: 100px; }
  .uc-journal-total strong { font-size: 40px; }
  .uc-journal-list { padding-top: 25px; padding-bottom: 60px; }
  .uc-journal-categories { gap: 8px; padding-bottom: 22px; }
  .uc-journal-categories a { padding: 7px 13px; font-size: 11px; }
  .uc-journal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .uc-story h2 { font-size: 18px; }
  .uc-story-body { padding-top: 16px; }
  .uc-reader-head { padding-bottom: 30px; }
  .uc-reader-head h1 { font-size: 32px; }
  .uc-reader-layout { padding-top: 25px; }
  .uc-reader-paper { padding: 30px; }
  .uc-reader-related { padding-top: 45px; }
}
@media (max-width: 540px) {
  .uc-help-section { padding: 50px 0; }
  .uc-help-intro { display: block; }
  .uc-help-intro h2 { font-size: 29px; }
  .uc-help-intro > p { font-size: 13px; }
  .uc-help-contact { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 22px; padding: 16px 18px; border-radius: 10px; }
  .uc-help-contact h3 { font-size: 12px; margin: 0; }
  .uc-help-contact a { padding: 0; border: 0; gap: 12px; font-size: 11px; }
  .uc-help-list { gap: 10px; }
  .uc-help-item { border-radius: 10px; }
  .uc-help-item summary { padding: 18px 16px; gap: 12px; }
  .uc-help-number { font-size: 10px; }
  .uc-help-question { font-size: 14px; }
  .uc-help-toggle { width: 22px; height: 22px; }
  .uc-help-toggle::before, .uc-help-toggle::after { top: 10px; left: 6px; }
  .uc-help-answer { padding: 0 45px 19px 41px; font-size: 12px; line-height: 2; }
  .uc-journal-title-row { gap: 20px; padding-bottom: 30px; align-items: flex-start; }
  .uc-journal-title-row h1 { font-size: 31px; margin-top: 10px; margin-bottom: 14px; }
  .uc-journal-eyebrow { font-size: 9px; letter-spacing: .06em; }
  .uc-journal-description { font-size: 12px; }
  .uc-journal-total { padding-left: 16px; min-width: 67px; margin-top: 33px; }
  .uc-journal-total strong { font-size: 32px; }
  .uc-journal-total > span { font-size: 9px; margin-top: 8px; }
  .uc-journal-categories { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 17px; }
  .uc-journal-categories a { flex-shrink: 0; }
  .uc-journal-status { padding: 20px 0; }
  .uc-journal-status p { font-size: 12px; }
  .uc-journal-status > span { font-size: 10px; }
  .uc-journal-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .uc-story-image { border-radius: 10px; }
  .uc-story h2 { font-size: 20px; min-height: 0; }
  .uc-story-description { font-size: 13px; }
  .uc-story-meta { font-size: 11px; }
  .uc-story-link { font-size: 12px; }
  .uc-reader { padding-bottom: 50px; }
  .uc-reader-head { padding-bottom: 27px; }
  .uc-reader-head h1 { font-size: 26px; line-height: 1.6; margin: 16px 0 20px; }
  .uc-reader-categories { margin-top: 0; }
  .uc-reader-categories a { font-size: 10px; }
  .uc-reader-meta { font-size: 10px; gap: 7px 10px; }
  .uc-reader-updated { padding-left: 12px; margin-left: 0; }
  .uc-reader-layout { padding-top: 20px; gap: 18px; }
  .uc-reader-paper { padding: 24px 19px; border-radius: 10px; }
  .uc-reader-cover { margin-bottom: 25px; }
  .uc-reader-toc { padding: 17px 19px; border-radius: 10px; }
  .uc-reader-toc ol { grid-template-columns: minmax(0, 1fr); max-height: 155px; }
  .uc-reader-toc h2 { font-size: 12px; }
  .uc-reader-neighbors { gap: 15px; }
  .uc-reader-neighbors > div + div { padding-left: 15px; }
  .uc-reader-neighbors span { font-size: 12px; }
  .uc-reader-end { margin-top: 32px; }
  .uc-reader-related-heading h2 { font-size: 22px; }
}
@media (max-width: 360px) {
  .uc-help-contact { gap: 10px; padding: 15px; }
  .uc-help-contact a { font-size: 10px; }
  .uc-help-answer { padding-right: 25px; }
  .uc-journal-total { min-width: 57px; padding-left: 13px; }
  .uc-journal-title-row h1 { font-size: 28px; }
  .uc-reader-head h1 { font-size: 24px; }
  .uc-reader-paper { padding-inline: 16px; }
}
@media print {
  .uc-reader-head { border: 0; }
  .uc-reader-aside, .uc-reader-neighbors, .uc-reader-return, .uc-reader-related { display: none; }
  .uc-reader { background: white; padding: 0; }
  .uc-reader-layout { display: block; padding-top: 0; }
  .uc-reader-paper { padding: 0; border: 0; }
}
