.horary { grid-column: 1/-1; min-width: 0; margin-top: 28px; padding: clamp(18px,3vw,36px); border: 1px solid #61787577; background: #10252e; color: #f4e8d1; }
.horary [hidden] { display: none !important; }
.horary button { cursor: pointer; color: #e9dfc9; background: #112d38; border: 1px solid #65858177; padding: 10px 12px; font: 13px "DM Sans",sans-serif; }
.horary button:hover { background: #24404a; border-color: #bdd1b9; }
.horary button:disabled { opacity: .55; cursor: default; }
.horary :is(button,input,select,summary):focus-visible { outline: 2px solid #efca7f; outline-offset: 3px; }
.horary input, .horary select, .horary textarea { display: block; background: #0c222e; color: #f1e8d8; border: 1px solid #6b8e8877; padding: 10px; font: 14px "DM Sans",sans-serif; min-width: 0; max-width: 100%; color-scheme: dark; }
.horary summary { cursor: pointer; color: #d8d9be; }
.horary blockquote { margin: 17px 0 0; padding-left: 15px; border-left: 1px solid #c6af79; font: italic 19px/1.5 "Playfair Display",serif; color: #e0c58c; }

.ho-heading h3 { font: 500 clamp(29px,3.5vw,44px)/1.15 "Playfair Display",serif; margin: 10px 0; }
.ho-heading > p:last-child { font-size: 14px; color: #b5c7c8; line-height: 1.7; max-width: 690px; }
.ho-banner { max-width: 780px; }

.ho-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 25px 0 18px; }
.ho-tabs button { position: relative; text-align: left; padding: 18px 15px 18px 54px; font-size: 15px; }
.ho-tabs button > span { position: absolute; left: 16px; top: 19px; font: 24px serif; color: #d8c085; }
.ho-tabs small { display: block; font-size: 11px; color: #a9c0c0; margin-top: 6px; }
.ho-tabs button[aria-pressed="true"] { border-color: #d8bd86; background: #cfb77e14; box-shadow: inset 0 -3px #d8bd86; }

.ho-view[hidden] { display: none; }
.ho-view-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 25px 0 14px; }
.ho-view-heading h4 { margin: 6px 0 0; font: 500 27px/1.25 "Playfair Display",serif; }

.ho-question-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 15px; align-items: end; padding: 20px; background: #0a202a; margin: 24px 0; }
.ho-question-form label { display: block; font-size: 11px; color: #b4c8c7; }
.ho-question-form label small { color: #9db4b6; }
.ho-question-form input, .ho-question-form select, .ho-question-form textarea { margin-top: 8px; width: 100%; font-size: 16px; }
.ho-question-field { grid-column: 1/-1; }
.ho-question-field textarea { resize: vertical; min-height: 52px; }
.ho-question-form .birthplace-field { grid-column: 1/-1; }
.ho-question-form .city-search-status { color: #adbec1; }
.ho-question-form .city-suggestions { background: #142c38; color: #e1d8bf; }
.ho-question-form .city-suggestions button { text-align: left; width: 100%; }
.ho-question-form .city-suggestions button, .ho-question-form .city-suggestions button strong { color: #f1e8d8; }
.ho-question-form .city-suggestions button span { color: #a9bfc0; }
.ho-question-form .city-suggestions button:hover, .ho-question-form .city-suggestions button[aria-selected="true"] { background: #305154; }
.ho-custom-place { grid-column: 1/-1; font-size: 11px; }
.ho-custom-place fieldset { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 12px; border: 0; padding: 15px 0; min-width: 0; }
.ho-custom-place fieldset:disabled { opacity: .45; }
.ho-manual-toggle { display: flex !important; gap: 10px; align-items: center; margin-top: 15px; }
.ho-manual-toggle input { width: auto; margin: 0; }
.horary .ho-primary { grid-column: 1/-1; background: #d7c38d; color: #0b202b; border-color: #d7c38d; padding: 13px; }
.horary .ho-primary:hover { background: #e8d5a1; border-color: #e8d5a1; color: #0b202b; }

.ho-status { margin-top: 10px; color: #e5d5a3; font-size: 13px; min-height: 18px; }
.ho-casting { padding: 30px 0; text-align: center; color: #c9b784; font-size: 14px; }

.ho-wheel-wrap { max-width: 440px; margin: 0 auto; }
.ho-wheel-wrap svg { display: block; width: 100%; height: auto; overflow: visible; color: #f4e8d1; }
.ho-wheel-wrap text { fill: currentColor; }
.ho-wheel-wrap .h-sign, .ho-wheel-wrap .h-angle-label { fill: #e2c98b; }
.ho-wheel-wrap .h-degree, .ho-wheel-wrap .h-house-number { fill: #b9cbcb; }
.ho-wheel-wrap text { font-family: "Segoe UI Symbol","Apple Symbols","Noto Sans Symbols 2",serif; }

.ho-question-echo { margin-top: 18px; font: italic 17px/1.6 "Playfair Display",serif; color: #e0c58c; overflow-wrap: anywhere; }
.ho-hour-line { margin-top: 12px; color: #adbec1; font-size: 13px; }
.ho-house-lilly { color: #bed0cc; font-size: 13px; line-height: 1.8; margin-top: 6px; }

.ho-considerations { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ho-consideration { padding: 12px; background: #0b232d; border: 1px solid #6b8e8833; font-size: 12px; color: #dfcfab; }
.ho-consideration.is-present { border-color: #d8c48c; }
.ho-consideration h5 { margin: 0 0 6px; font: 500 15px/1.3 "Playfair Display",serif; color: #e5d5a3; }
.ho-consideration p { color: #bed0cc; font-size: 12px; line-height: 1.7; }
.ho-consideration small { display: block; margin-top: 6px; color: #a5bdbc; font-size: 10px; }

.ho-sig-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.ho-sig-card { padding: 16px 18px; background: #0b232d; border: 1px solid #6b8e8833; min-width: 0; }
.ho-sig-card h4 { margin: 6px 0; font: 500 23px/1.3 "Playfair Display",serif; color: #e5d5a3; }
.ho-sig-place { font-size: 12px; color: #a8c0bd; }
.ho-sig-why { font-size: 12px; color: #a8c0bd; margin-top: 4px; }
.ho-dignity-tally { margin-top: 12px; display: grid; gap: 8px; }
.ho-dignity-tally div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; font-size: 12px; color: #bed0cc; }
.ho-dignity-tally dt { color: #a8c0bd; }
.ho-dignity-tally dd { margin: 0; }
.ho-tally { font: 12px "DM Mono",monospace; color: #d8c085; }
.ho-as-sig { margin-top: 10px; color: #bed0cc; font-size: 13px; line-height: 1.7; }
.ho-glossary { margin-top: 10px; font-size: 11px; }
.ho-glossary p { margin-top: 8px; color: #a8c0bd; line-height: 1.6; }

.ho-closing { margin-top: 18px; font: italic 15px/1.7 "Playfair Display",serif; color: #e0c58c; }
.ho-empty { padding: 10px 0; color: #a8c0bd; font-size: 13px; }
.ho-receptions { list-style: none; margin: 10px 0 0; padding: 0; }
.ho-receptions li { padding: 8px 0; border-bottom: 1px solid #6b8e8833; font-size: 13px; color: #cfdad3; }

.ho-perfection-item { margin-top: 12px; padding: 14px 16px; background: #0b232d; border: 1px solid #6b8e8833; }
.ho-perfection-item h5 { margin: 0 0 6px; font: 500 17px/1.3 "Playfair Display",serif; color: #e5d5a3; }
.ho-perfection-item p { color: #bed0cc; font-size: 13px; line-height: 1.7; }
.ho-perfection-note { margin-top: 6px; color: #a8c0bd; font-size: 12px; }

.ho-moon-note { margin-top: 8px; color: #bed0cc; font-size: 13px; line-height: 1.7; }

.ho-hour-summary { color: #adbec1; font-size: 12px; margin-bottom: 8px; }
.horary .cx-table-wrap tr[aria-current="true"] { background: #cfb77e1f; }
.horary .cx-table-wrap tr[aria-current="true"] th { color: #e5d5a3; }

.ho-elect-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 16px; }
.ho-elect-form label { display: block; font-size: 11px; color: #b4c8c7; }
.ho-elect-form input { margin-top: 6px; font-size: 16px; }
.ho-elect-place { margin-top: 10px; color: #adbec1; font-size: 12px; }

.ho-conventions { border-top: 1px solid #6b8e8844; padding-top: 17px; margin-top: 20px; color: #acc1c1; font-size: 12px; line-height: 1.8; }

@media (max-width: 1000px) {
  .ho-tabs button { padding-left: 42px; font-size: 14px; }
  .ho-tabs button > span { left: 12px; font-size: 22px; }
  .ho-custom-place fieldset { grid-template-columns: 1fr 1fr; }
  .ho-considerations { grid-template-columns: 1fr; }
  .ho-sig-cards { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .ho-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ho-question-form { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .horary { padding: 20px 14px; }
  .ho-tabs { gap: 5px; }
  .ho-tabs button { text-align: center; padding: 12px 5px; font-size: 12px; }
  .ho-tabs button > span { position: static; display: block; margin-bottom: 9px; }
  .ho-tabs small { font-size: 9px; }
  .ho-view-heading h4 { font-size: 25px; }
  .ho-custom-place fieldset { grid-template-columns: 1fr; }
  .ho-elect-form { width: 100%; }
}
@media print {
  .horary { break-before: page; border: 0; padding: 0; background: #fff !important; color: #151c23 !important; }
  .ho-tabs, .ho-question-form, .ho-elect-form, .horary [data-ho-goto-question] { display: none !important; }
  .horary :is(p,h3,h4,h5,th,td,small,strong,summary,blockquote,li) { color: #151c23 !important; }
  .horary blockquote { border-left-color: #8a7645; }
  .horary details > :not(summary) { display: block !important; }
  .horary .cx-table-wrap th, .horary .cx-table-wrap td { border-bottom-color: #c6bda9; }
}
