.odi-home { --pine: #174a3c; --paper: #fffcf5; }
.home-lead {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #c2cbbb;
  border-radius: 18px;
  background: var(--paper);
}
.home-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(30px, 4.4vw, 62px);
  color: #faf7e9;
  background: #174536;
}
.home-edition {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 12px;
  color: #e0e5ca;
}
.home-edition span { width: 26px; height: 2px; background: #d7bf75; }
.home-intro h1 {
  margin: 24px 0 18px;
  color: inherit;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(38px, 4.2vw, 61px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -.055em;
}
.home-pitch { margin: 0; max-width: 28em; font-size: 16px; line-height: 1.85; color: #e6edde; }
.home-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 15px; }
.home-ctas button {
  min-height: 46px; border-radius: 7px; padding: 10px 16px;
  font-size: 15px; font-weight: 650;
}
.home-primary { background: #f6dfa1; color: #182e22; border: 1px solid #f6dfa1; }
.home-primary:hover { background: #ffecbd; }
.home-primary span { margin-left: 6px; }
.home-secondary { color: #fbf9ee; border: 1px solid #a5b6a3; background: transparent; }
.home-secondary:hover { background: #285541; }
.home-example { padding: 5px 0; font-size: 14px; color: #fcf2cf; text-underline-offset: 4px; }
.home-example span { font-family: system-ui, sans-serif; }
.home-ctas { align-items: center; }
.home-restore { width: 100%; max-width: 27em; margin-top: 6px; font-size: 14px; }
.home-restore summary { padding: 11px 0; color: #fff3ce; cursor: pointer; }
.home-restore button {
  display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 10px 13px; margin: 0 0 6px;
  background: #214f41; border: 1px solid #95aa99; border-radius: 6px; color: #fffdf6; text-align: left;
}
.home-restore button:hover { background: #2b5b47; }
.home-restore small { color: #e2e9d9; font-size: 13px; }
.home-private { margin: 28px 0 0; font-size: 12px; line-height: 1.6; color: #cfddcc; }
.home-guide { min-width: 0; padding: clamp(22px, 3.0vw, 40px); }
.guide-top, .guide-controls, .guide-viewer-bar { display: flex; gap: 10px; align-items: center; }
.guide-top { justify-content: space-between; }
.guide-top h2 { margin: 0; font-size: 20px; color: #243c2d; }
.guide-controls { gap: 5px; }
.guide-count { margin-right: 5px; font-size: 12px; font-variant-numeric: tabular-nums; color: #475b4d; }
.guide-controls button, .guide-viewer-bar button {
  min-width: 36px; min-height: 36px; color: #264b3b; background: #fffdf6;
  border: 1px solid #c7cfc1; border-radius: 6px; padding: 4px 10px;
}
.guide-controls button:hover, .guide-viewer-bar button:hover { background: #eaf0e4; }
.guide-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; margin: 14px 0; }
.guide-tabs button {
  padding: 8px 2px; min-height: 40px; background: transparent; color: #526054;
  border: 0; border-bottom: 2px solid #e3e5d9; font-size: 13px;
}
.guide-tabs [aria-selected="true"] { color: #174a3c; border-color: #245745; font-weight: 750; }
.guide-picture {
  display: block; position: relative; padding: 0; overflow: hidden;
  width: 100%; border: 1px solid #d7d7c7; border-radius: 7px; background: #fffdf2;
  cursor: zoom-in; touch-action: pan-y pinch-zoom;
}
.guide-picture img { display: block; width: 100%; height: clamp(220px, 36vh, 380px); object-fit: contain; }
.guide-picture span {
  position: absolute; right: 8px; bottom: 8px; padding: 5px 9px;
  color: #fffdf2; background: #173c32; font-size: 12px; border-radius: 4px;
}
.guide-caption h3 { margin: 15px 0 5px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; }
.guide-caption p { color: #516051; margin: 0; line-height: 1.65; font-size: 14px; }
.guide-text { margin-top: 8px; font-size: 13px; line-height: 1.7; }
.guide-text summary { color: var(--pine); cursor: pointer; width: fit-content; padding: 4px 0; }
.guide-text ul { padding-left: 1.4em; }
.guide-text li + li { margin-top: 7px; }
.guide-text p { color: #526455; }
.guide-text button, .home-local button, .home-local a {
  border: 0; background: transparent; padding: 0; color: var(--pine);
  font-size: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.guide-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.home-tools {
  display: grid; grid-template-columns: 1.05fr 1fr 1fr; margin: 25px 0 0;
  border-block: 1px solid #ccd4c7; padding: 16px 0;
}
.home-tools .home-tool, .home-local {
  position: relative; min-height: auto; padding: 6px 35px 6px 18px;
  background: transparent; text-align: left; border: 0; border-radius: 0; color: var(--ink);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.home-tools .home-tool:first-child { padding-left: 0; }
.home-tools > * + * { border-left: 1px solid #ccd4c7 !important; }
.home-tools .home-tool:hover { background: #eeefe5; }
.home-tools strong { font-size: 16px; font-weight: 700; }
.home-tool small, .home-local div { color: #526054; font-size: 13px; line-height: 1.6; }
.home-tool b { position: absolute; right: 13px; top: 6px; font-weight: 400; }
.home-local { padding-right: 0; }
.home-local div { display: flex; gap: 7px 12px; flex-wrap: wrap; }
.guide-viewer {
  width: min(97vw, 980px); max-width: none; max-height: 94vh; max-height: 94dvh;
  border-radius: 12px; border-color: #829687; background: var(--paper); padding: 0;
}
.guide-viewer[open] { display: flex; flex-direction: column; }
.guide-viewer::backdrop { background: #152b23c9; }
.guide-viewer-bar { flex: none; padding: 12px; border-bottom: 1px solid var(--line); }
.guide-viewer-bar h2 { flex: 1; margin: 0; font-size: 17px; line-height: 1.45; }
.guide-viewer-bar button { flex: none; font-size: 14px; }
#guide-viewer-context { flex: none; margin: 0; padding: 7px 12px; color: #435747; font-size: 13px; line-height: 1.55; }
.guide-scroll { overflow: auto; overscroll-behavior: contain; min-height: 0; background: #ecebe2; }
.guide-viewer:not(.guide-zoomed) .guide-scroll { min-height: 0; display: grid; place-items: center; }
.guide-viewer:not(.guide-zoomed) .guide-scroll img { min-height: 0; height: 100%; object-fit: contain; }
.guide-scroll img { display: block; width: 100%; height: auto; margin: auto; }
.guide-zoomed .guide-scroll img { width: max(145%, 1086px); max-width: none; margin: 0; }
@media (max-width: 820px) {
  .home-lead { grid-template-columns: 1fr; }
  .home-intro { padding: 30px; }
  .home-intro h1 { font-size: 45px; margin: 14px 0; }
  .home-ctas { margin: 18px 0 8px; }
  .home-private { margin: 12px 0 0; }
  .home-guide { padding: 22px 30px; }
  .guide-picture { max-width: 560px; margin: auto; }
}
@media (max-width: 550px) {
  body[data-view="home"] main { padding-top: 15px; }
  .home-lead { border-radius: 12px; }
  .home-intro, .home-guide { padding: 22px 17px; }
  .home-intro h1 { font-size: 37px; }
  .home-pitch { font-size: 14px; line-height: 1.7; }
  .home-ctas { gap: 8px; }
  .home-ctas button { min-height: 44px; padding: 8px 10px; font-size: 14px; }
  .guide-top h2 { font-size: 18px; }
  .guide-tabs { margin: 9px 0; }
  .guide-tabs button { font-size: 12px; }
  .home-tools { grid-template-columns: 1fr; margin-top: 15px; padding: 0; }
  .home-tools .home-tool, .home-local { padding: 13px 27px 13px 0; gap: 3px; }
  .home-tools > * + * { border-left: none !important; border-top: 1px solid #dbe0d4 !important; }
  .home-tool b { top: 15px; right: 5px; }
  .guide-viewer-bar { gap: 5px; padding: 8px; }
  .guide-viewer-bar h2 { font-size: 14px; }
  .guide-viewer-bar button { padding: 4px 7px; }
}
