/* Shared visual finish. No remote assets, layout scripts or functional changes. */
:root {
  --lira-radius: 18px;
  --lira-shadow: 0 12px 32px #253a3209;
}
html { scroll-padding-top: 24px; }
body { text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: #a8753526; }
:focus-visible { outline: 3px solid #87551d; outline-offset: 4px; }
button:disabled { cursor: not-allowed; }
main h1, main h2, main h3 { text-wrap: balance; }
main :is(p, li, dd) { overflow-wrap: break-word; }
main :is(input, select, textarea) { max-width: 100%; }

/* A quieter header: one primary action, readable navigation and touch targets. */
.site-header { box-shadow: var(--lira-shadow); }
.site-header .site-session { gap: 8px 12px; font-size: 13px; }
.site-header .site-session > a,
.site-header .site-session .session-primary,
.site-header .site-session button.text-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  line-height: 1.35;
}
.site-header .site-session > a:not(.session-primary) {
  background: #955f1c;
  color: #fff;
  border-color: #955f1c;
}
.site-header .site-session > a:not(.session-primary):hover {
  background: #784917;
  color: #fff;
  text-decoration: none;
}
.site-header .site-language select {
  min-height: 42px;
  max-width: 108px;
  padding: 8px;
  font-size: 13px;
}
.site-header .site-navigation { gap: 22px; font-size: 14px; }
.site-header .site-navigation a { min-height: 42px; display: inline-flex; align-items: center; }
.site-footer { padding-block: 40px 32px; }
.site-footer p, .site-footer small { font-size: 13px; line-height: 1.9; }
.site-footer > p:last-child { max-width: 720px; }
.site-footer > p:last-child a { display: inline-block; padding-block: 5px; }

/* Landing: clearer reading rhythm and more substantial, consistent cards. */
.lh-reference-home .lr-opening { margin-top: 20px; border-radius: 22px; }
.lh-reference-home .lr-opening h1 { line-height: 1.08; max-width: 780px; }
.lh-reference-home .lr-lead { line-height: 1.6; max-width: 620px; }
.lh-reference-home .lr-prompts { gap: 10px; }
.lh-reference-home .lr-prompts a { min-height: 54px; padding: 13px 17px; border-radius: 13px; }
.lh-reference-home .lr-question { min-height: 56px; border-radius: 13px; }
.lh-reference-home .lr-question input { background: transparent; font-size: 16px; }
.lh-reference-home .lr-question button { width: 44px; height: 44px; }
.lh-reference-home .lr-primary { min-height: 50px; border-radius: 13px; }
.lh-reference-home .lr-reassurance { font-size: 13px; line-height: 1.6; }
.lh-reference-home .lr-assurances { padding-block: 12px; gap: 24px; }
.lh-reference-home .lr-assurances p { font-size: 14px; line-height: 1.6; }
.lh-reference-home .lr-value-grid { gap: 18px; }
.lh-reference-home .lr-value-grid article { border-radius: 16px; min-height: 148px; }
.lh-reference-home .lr-value-grid h3 { line-height: 1.2; }
.lh-reference-home .lr-value-grid p { font-size: 15px; line-height: 1.65; }
.lh-reference-home .lr-discovery-cards { gap: 16px; }
.lh-reference-home .lr-discovery-cards > a { border-radius: 16px; padding: 24px 20px; }
.lh-reference-home .lr-discovery-cards p { font-size: 15px; line-height: 1.65; }
.lh-reference-home :is(.lr-how, .lr-topics, .lr-final-values) { margin-block: 48px; }
.lh-reference-home .lr-final-values-grid { gap: 28px; }
.lh-reference-home .lr-final-values-grid p { font-size: 15px; line-height: 1.7; }
.lh-reference-home .lr-small-button { min-height: 46px; border-radius: 12px; }
.lh-reference-home .lr-learning { border-radius: 22px; }

/* Long-form pages and private spaces keep their own layouts and controls. */
.lira-about p { line-height: 1.75; }
.legal-document { padding-block: 12px 36px; }
.legal-document h1 { max-width: 820px; letter-spacing: -.025em; }
.legal-document h2 { padding-top: 8px; }
.legal-document a { text-decoration-thickness: 1px; }
.account-page .account-history,
.member-space .space-panel,
.member-space .space-support-card,
.billing-card { box-shadow: var(--lira-shadow); }
.account-page .history-item { padding-block: 20px; }
.account-page .account-privacy { line-height: 1.8; }
.billing-card { border-radius: 22px; }
.billing-lead { line-height: 1.8; }
.auth-shell .auth-card { box-shadow: 0 18px 48px #5339191a; }
.auth-shell .auth-card input { font-size: 16px; }
.admin-main .editor-form { line-height: 1.75; }
.admin-main .actions { flex-wrap: wrap; gap: 12px 20px; }
.admin-main :is(th, td) { overflow-wrap: anywhere; }
.admin-main .notice { border-radius: 14px; }
.guide-shell .guide-mobile-header { box-shadow: 0 3px 16px #253a3208; }
.guide-shell .guide-site-menu summary { min-height: 42px; display: flex; align-items: center; }

/* Keep consent readable and both choices equally prominent. */
#analytics-choice { padding: 18px; border-radius: 18px; font-size: 13px; line-height: 1.55; }
#analytics-choice button { min-height: 44px; }

@media (min-width: 1001px) and (max-width: 1280px) {
  .site-header { grid-template-columns: auto minmax(0, 1fr); }
  .site-header .site-navigation { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .site-header .site-session { grid-column: 2; grid-row: 1; }
}
@media (max-width: 760px) {
  .site-header { width: calc(100% - 24px); margin-top: 12px; padding: 16px; gap: 14px; }
  .site-header .site-session { gap: 8px; }
  .site-header .site-session > a,
  .site-header .site-session .session-primary { padding: 9px 12px; font-size: 12px; }
  .site-header .site-navigation { gap: 20px; font-size: 13px; }
  .site-header .brand { font-size: 30px; }
  .site-footer { width: calc(100% - 40px); padding-block: 32px 24px; }
  .lh-reference-home .lr-opening { margin-top: 16px; border-radius: 0; }
  .lh-reference-home .lr-opening h1 { font-size: clamp(36px, 9.5vw, 48px); line-height: 1.1; }
  .lh-reference-home .lr-prompts a { font-size: 16px; }
  .lh-reference-home .lr-reassurance { gap: 8px 14px; font-size: 12px; }
  .lh-reference-home .lr-assurances { gap: 20px 16px; }
  .lh-reference-home .lr-value-grid article { min-height: 140px; }
  .lh-reference-home .lr-discovery-cards { gap: 12px; }
  .lh-reference-home .lr-discovery-cards > a { padding: 20px 16px; }
  .lh-reference-home :is(.lr-how, .lr-topics, .lr-final-values) { margin-block: 36px; }
  .lh-reference-home .lr-final-values-grid { gap: 24px 18px; }
  .lh-reference-home .lr-final-values-grid p { font-size: 14px; }
  #analytics-choice { bottom: 10px; right: 10px; max-width: calc(100vw - 20px); padding: 16px; max-height: 60dvh; }
}
@media (max-width: 420px) {
  /* Avoid squeezing the brand beside four tiny actions. */
  .site-header { grid-template-columns: 1fr; gap: 12px; }
  .site-header .brand { justify-self: center; }
  .site-header .site-session { grid-column: 1; grid-row: 2; justify-content: center; }
  .site-header .site-navigation { grid-column: 1; grid-row: 3; justify-content: flex-start; gap: 16px; }
  .lh-reference-home .lr-discovery-cards { grid-template-columns: 1fr; }
  .lh-reference-home .lr-discovery-cards > a { padding: 20px; }
}
@media (max-width: 900px) {
  .guide-shell .guide-mobile-brand { font: 500 14px/1.4 Arial, sans-serif; gap: 8px; }
  .guide-shell .guide-mobile-brand .guide-icon { width: 19px; height: 19px; }
}
