/* Shared layout and components. */
/* Original masthead artwork and white logo; current navigation routes are preserved. */
.site-header{position:sticky;top:0;background:#fff;border-bottom:1px solid #ece5ed;z-index:var(--header-layer)}
.heritage-masthead{background:#86138e url('/brand/headerbg.png') center top/cover no-repeat;color:#fff}
.header-inner{height:96px;display:flex;align-items:center;gap:28px}
.brand{flex:none;display:block;padding:0;background:transparent}
.brand img{width:190px;height:auto;object-fit:contain}
.heritage-navigation{background:#fff}
.primary-nav{display:flex;gap:8px;align-items:center;white-space:nowrap;padding-block:12px}
.primary-nav a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 18px;font-weight:550;border:1px solid #ece8ee;border-radius:6px;background:#faf9fa;color:#383039;transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.primary-nav a:hover,.primary-nav .current{color:#fff;background:#813c85;border-color:#813c85}
.primary-nav svg{width:18px;height:18px;flex:none}
.header-search{display:flex;flex:1;min-width:150px;max-width:410px;height:44px;background:#fff;border-radius:24px;border:1px solid #ffffff60;overflow:hidden;box-shadow:0 2px 6px #1e00282e}.header-search input{border:0!important;background:transparent!important;min-width:0;width:100%;outline:0}.header-search button{width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--brand);flex:none}.header-search button:hover{background:#f2eaf5;color:var(--brand);box-shadow:none}.header-search button[aria-busy=true]{padding:0}.header-search button[aria-busy=true] svg{visibility:hidden}.header-actions{display:flex;gap:18px;align-items:center;margin-left:auto;font-size:13px;white-space:nowrap;color:#fff}.header-actions a{padding-block:10px;border-bottom:1px solid transparent}.header-actions a:hover{color:#f9e4ff;border-bottom-color:#ffffff80}.header-actions a:focus-visible,.mobile-search:focus-visible{outline-color:#fff}.user-entry{max-width:100px;overflow:hidden;text-overflow:ellipsis}.mobile-bottom,.mobile-search{display:none}.header-search svg,.mobile-search svg,.mobile-bottom svg{width:24px;height:24px;display:block;flex:none}.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.content-card{min-width:0;background:white;border-radius:10px;overflow:hidden;border:1px solid var(--line)}.content-card:hover{border-color:#cbb8d2}.card-image{display:block;aspect-ratio:16/9;background:#eeecf1;position:relative;overflow:hidden}.card-image img{width:100%;height:100%;object-fit:contain}.play-badge{position:absolute;bottom:8px;left:8px;color:white;background:#222b;padding:3px 8px;border-radius:5px;font-size:12px}.card-copy{padding:14px 16px;min-width:0}.card-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;font-size:12px;margin:0 0 8px}.content-card h3{margin:0 0 10px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-summary{font-size:14px;line-height:1.7;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 12px}.card-author{font-size:12px;color:var(--muted)}.article-card .card-image{aspect-ratio:2/1}.article-card h3{font-size:18px}.text-card{padding:0}.image-placeholder{display:grid;place-items:center;height:100%;color:var(--muted)}.section-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.section-heading h2{margin:0}.text-link,.back-link{font-size:14px;color:var(--brand)}.back-link,.author-inline>a[href^="/member/login"]{display:inline-flex;align-items:center;min-height:44px}.tabs,.chips{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 24px}.tabs a,.chips a{display:flex;align-items:center;min-height:44px;padding:8px 16px;border-radius:24px;background:#fff;border:1px solid var(--line)}.tabs .current,.chips .current{background:var(--brand);border-color:var(--brand);color:white}.empty-state{text-align:center;padding:48px 24px;background:#fff;border:1px solid var(--line);border-radius:12px;grid-column:1/-1}.empty-state h2{font-size:20px}.empty-state p{color:var(--muted)}.empty-state a{color:var(--brand)}.pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin:32px 0}.pagination a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;background:white;padding:10px 16px;border:1px solid var(--line);border-radius:var(--control-radius);font-size:14px;font-weight:550;transition:background-color .16s,border-color .16s}.pagination a:hover{background:var(--brand-soft);border-color:#d9c7e0}.avatar{width:44px;height:44px;background:var(--brand-soft);color:var(--brand);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:650;flex:none}.toast-stack{position:fixed;right:24px;bottom:24px;z-index:100;max-width:min(400px,calc(100vw - 32px))}.toast{background:#24242a;color:#fff;border-radius:10px;box-shadow:var(--shadow);padding:14px 20px;margin-top:8px;overflow-wrap:anywhere}.toast.error{background:var(--danger)}.feedback{padding:12px 16px;background:var(--brand-soft);border-radius:8px;margin:16px 0}.feedback.error{color:var(--danger);background:#fff0f0}.loading{opacity:.65;pointer-events:none}.skeleton{background:#e7e7ed;border-radius:8px;min-height:24px;animation:pulse 1s alternate infinite}@keyframes pulse{to{opacity:.5}}/* Content destinations, cultural themes and personal records have distinct levels. */
.task-navigation{display:flex;justify-content:space-between;align-items:center;min-height:54px;gap:16px}.task-nav{display:flex;align-items:center;gap:30px}.task-nav a{display:flex;align-items:center;min-height:52px;padding:4px 0;border-bottom:3px solid transparent;font-size:16px;font-weight:600}.task-nav a[aria-current=page]{color:var(--brand);border-bottom-color:var(--brand)}.task-nav a>span{font-size:12px;color:var(--muted);font-weight:400}.theme-menu{position:relative}.theme-menu summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--brand);font-size:14px}.theme-menu summary::after{content:'⌄'}.theme-menu>.culture-links{position:absolute;right:0;top:100%;width:560px;padding:16px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);grid-template-columns:repeat(3,minmax(0,1fr));z-index:60}.culture-links{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.culture-links a{display:flex;align-items:center;gap:12px;min-height:64px;padding:10px;border-radius:8px}.culture-links a:hover,.culture-links a[aria-current=page]{background:var(--brand-soft);color:var(--brand)}.culture-links .heritage-symbol{width:26px;height:26px;color:var(--brand)}.culture-links span{display:flex;flex-direction:column;gap:2px}.culture-links strong{font-size:16px}.culture-links small{font-size:11px;color:var(--muted)}.home-cultures{padding-block:12px;border-bottom:1px solid var(--line)}.home-reading{padding-top:26px}.home-reading h1{font-size:23px;margin:0}.home-reading .section-heading{margin-bottom:14px}.home-reading .tabs{margin:0 0 20px}.home-reading .tabs a{background:transparent;border-color:transparent;border-radius:6px;padding:8px 12px;font-size:14px}.home-reading .tabs .current{background:var(--brand-soft);color:var(--brand)}.home-help{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-top:32px;padding-top:20px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}.home-help summary{min-height:44px;cursor:pointer;color:var(--ink)}.home-help a{display:inline-flex;align-items:center;min-height:44px}.home-help li{padding:2px 0}.home-help ul{padding-left:20px}.home-followed{padding-block:24px}
/* The footer restores the old artwork and link hierarchy with verified R1 links. */
.site-footer { background: #30233d; color: #fff; font-size: 13px; margin-top: 32px; }
.footer-main { position: relative; isolation: isolate; overflow: hidden; min-height: 300px; }
.footer-scene {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  z-index: -2;
}
.footer-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 18, 44, .95), rgba(47, 25, 58, .88) 55%, rgba(45, 23, 53, .75));
  z-index: -1;
}
.footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 34px; padding: 58px 0 44px; }
.footer-identity .footer-brand img { width: 230px; height: auto; max-width: 100%; background: transparent; padding: 0; }
.footer-identity p { max-width: 270px; line-height: 1.8; color: #f0dff0; }
.footer-group { gap: 8px; font-size: 13px; }
.footer-group strong { margin-bottom: 8px; font-size: 16px; }
.footer-group a { color: #f4eaf5; }
.footer-group a:hover { color: #fff; text-decoration: underline; }
.footer-contact-icon { display: inline-block; width: 16px; height: 16px; margin-right: 7px; vertical-align: -3px; }
.footer-bar { background: #813c85; }
.footer-legacy-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 0;
  padding-top: 18px;
}
.footer-legacy-links a { padding: 0 19px; border-right: 1px solid rgba(255,255,255,.4); font-size: 14px; color: #fff; }
.footer-legacy-links a:last-child { border: 0; }
.footer-legacy-links a:hover { text-decoration: underline; }
.footer-bottom {
  justify-content: center;
  gap: 12px 22px;
  padding: 15px 0 18px;
  border: 0;
  color: #f3e8f5;
  letter-spacing: normal;
}


.footer-group{display:flex;flex-direction:column;min-width:0}.footer-group strong{color:#fff}.footer-group a{overflow-wrap:anywhere}.footer-bottom{display:flex;flex-wrap:wrap}.footer-legacy-links a:focus-visible,.footer-group a:focus-visible{outline-color:#fff}
.empty-state-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:20px}.empty-state-actions>.button{margin:0}.empty-state-actions>.text-link{display:inline-flex;align-items:center;min-height:44px;padding:10px 4px}
.partner-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.partner{background:white;border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column;align-items:center;gap:8px}.partner img{width:100%;height:60px;object-fit:contain}.article-actions,.forum-actions>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.article-actions form,.forum-actions form{margin:0}.article-actions a{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;min-height:44px;border:1px solid #e8ddec;border-radius:var(--control-radius);background:var(--brand-soft);color:var(--brand);font-size:14px;font-weight:600;line-height:1.25}.article-actions button{background:var(--brand-soft);border-color:#e8ddec;color:var(--brand)}.article-actions a:hover,.article-actions button:where(:not(:disabled):not([aria-disabled=true]):not([aria-busy=true])):hover{background:#e8dced;border-color:#d9c7e0;color:var(--brand)}.article-actions button[aria-pressed=true]:where(:not(:disabled):not([aria-disabled=true])){background:#e8dced;border-color:#b895c7;color:#673376}.action-status{font-size:13px;color:var(--brand)}

/* Confirmation and finite image loading state. */
.product-confirm{width:min(420px,calc(100% - 32px));border:1px solid var(--line);border-radius:12px;padding:24px;color:var(--ink)}.product-confirm::backdrop{background:#24242a55}.product-confirm>div{display:flex;justify-content:flex-end;gap:12px}.image-loading{position:relative}.image-loading::after{content:"";position:absolute;inset:0;background:#e7e7ed;animation:pulse 1s alternate infinite}.empty-state a.button:not(.secondary){color:white}.content-card>.card-author{margin-inline:16px}button[aria-busy=true]{cursor:progress}
@media(prefers-reduced-motion:reduce){.image-loading::after,.skeleton{animation:none}.content-card{transition:none}}
