:root {
  --snh-blue: #0470b8;
  --snh-blue-dark: #035f9d;
  --snh-pink: #d80a63;
  --snh-pink-dark: #b90853;
  --snh-text: #171717;
  --snh-muted: #6b7280;
  --snh-soft-blue: #eef7fd;
  --snh-border: #dbe7ef;
  --snh-white: #fff;
}

.snh-horoscope,
.snh-archive,
.snh-message {
  color: var(--snh-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

.snh-horoscope * { box-sizing: border-box; }

.snh-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 20px;
  border: 0;
  border-radius: 0;
  color: var(--snh-white) !important;
  background:
    radial-gradient(circle at 85% 12%, rgba(255,255,255,.25) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 38%, rgba(255,255,255,.18) 0 3px, transparent 4px),
    linear-gradient(135deg, var(--snh-blue-dark), var(--snh-blue) 58%, var(--snh-pink));
}

.snh-hero::after {
  content: "✦";
  position: absolute;
  right: clamp(24px, 7vw, 90px);
  top: 10px;
  color: rgba(255,255,255,.16);
  font-size: clamp(100px, 18vw, 210px);
  line-height: 1;
}

.snh-hero > * { position: relative; z-index: 1; }
.snh-kicker { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.snh-hero h2 { margin: 0 0 2px; color: #fff; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; }
.snh-hero time { display: block; font-size: 16px; opacity: .9; }
.snh-hero p { max-width: 780px; margin: 22px 0 0; font-size: clamp(16px, 2vw, 19px); }

.snh-date-select {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 20px 0;
}
.snh-date-select label { font-size: 14px; font-weight: 700; color: var(--snh-muted); }
.snh-date-select select {
  min-width: 145px;
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--snh-border);
  border-radius: 8px;
  color: var(--snh-text);
  background: #fff;
}

.snh-sign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.snh-sign-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--snh-border);
  border-radius: 14px;
  color: var(--snh-text);
  text-align: left;
  font: inherit;
  background: var(--snh-white);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.snh-sign-card:hover,
.snh-sign-card:focus-visible,
.snh-sign-card[aria-expanded="true"] {
  border-color: var(--snh-blue);
  outline: none;
  background: var(--snh-soft-blue);
  transform: translateY(-2px);
}
.snh-symbol { margin-bottom: 8px; color: var(--snh-pink); font-size: 38px; line-height: 1; }
.snh-sign-name { color: var(--snh-blue-dark); font-size: 23px; font-weight: 700; }
.snh-period { color: var(--snh-muted); font-size: 13px; }
.snh-summary { display: -webkit-box; overflow: hidden; margin: 16px 0; font-size: 15px; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.snh-read-more { margin-top: auto; color: var(--snh-pink); font-size: 14px; font-weight: 700; }

.snh-detail-panel {
  position: relative;
  margin: 26px 0;
  border: 1px solid var(--snh-border);
  border-radius: 18px;
  background: #fff;
}
.snh-detail-panel[hidden] { display: none; }
.snh-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: var(--snh-blue-dark);
  font-size: 28px;
  line-height: 1;
  background: var(--snh-soft-blue);
  cursor: pointer;
}
.snh-close:hover, .snh-close:focus-visible { color: #fff; outline: none; background: var(--snh-pink); }

.snh-sign-detail { padding: clamp(24px, 5vw, 46px); }
.snh-sign-detail.is-single { margin-top: 24px; border: 1px solid var(--snh-border); border-radius: 18px; background: #fff; }
.snh-sign-detail > header { display: flex; align-items: center; gap: 18px; padding-right: 48px; }
.snh-detail-symbol { color: var(--snh-pink); font-size: 68px; line-height: 1; }
.snh-detail-label { color: var(--snh-pink); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.snh-sign-detail h3 { margin: 0; color: var(--snh-blue-dark); font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
.snh-detail-summary { margin: 25px 0; padding: 18px 20px; border-left: 4px solid var(--snh-pink); background: #fff5f9; font-size: 17px; }
.snh-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.snh-topic-grid section { padding: 22px; border-radius: 12px; background: var(--snh-soft-blue); }
.snh-topic-grid section > span { color: var(--snh-pink); font-size: 24px; }
.snh-topic-grid h4 { margin: 6px 0 9px; color: var(--snh-blue-dark); font-size: 17px; }
.snh-topic-grid p { margin: 0; font-size: 15px; }
.snh-lucky-row { display: flex; gap: 14px; margin: 18px 0; }
.snh-lucky-row > div { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; border: 1px solid var(--snh-border); border-radius: 10px; }
.snh-lucky-row span { color: var(--snh-muted); font-size: 13px; }
.snh-lucky-row strong { color: var(--snh-pink); font-size: 18px; }
.snh-sign-detail blockquote { margin: 20px 0 0; padding: 0; border: 0; color: var(--snh-blue-dark); font-size: 19px; font-style: italic; font-weight: 700; text-align: center; }

.snh-footer-note { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--snh-border); color: var(--snh-muted); font-size: 12px; }
.snh-footer-note p { margin: 0; }
.snh-footer-note span { white-space: nowrap; }
.snh-message { padding: 18px 20px; border-left: 4px solid var(--snh-blue); background: var(--snh-soft-blue); }
.snh-message-error { border-left-color: var(--snh-pink); }

.snh-archive { padding: 22px; border: 1px solid var(--snh-border); border-radius: 12px; }
.snh-archive h3 { margin-top: 0; color: var(--snh-blue-dark); }
.snh-archive ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.snh-archive a { color: var(--snh-blue); text-decoration: none; }
.snh-archive a:hover { color: var(--snh-pink); text-decoration: underline; }

.snh-widget {
  container: snh-widget / inline-size;
  box-sizing: border-box;
  width: 100%;
  padding: 0 0 22px;
  border: 0;
  color: var(--snh-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  background: transparent;
}
.snh-widget * { box-sizing: border-box; }
.snh-widget a,
.snh-widget a:link,
.snh-widget a:visited,
.snh-widget a:hover,
.snh-widget a:focus { text-decoration: none !important; box-shadow: none !important; background-image: none !important; }
.snh-widget-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}
.snh-widget-title {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 14px;
  color: var(--snh-white);
  font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  background: var(--snh-pink) !important;
  box-shadow: none;
}
.snh-widget-heading time {
  display: block;
  margin-left: auto;
  color: var(--snh-muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}
.snh-widget-summary { margin: 0 0 16px; color: var(--snh-text); font-size: 15px; line-height: 1.55; }
.snh-widget-signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.snh-widget-signs a {
  display: flex;
  min-height: 54px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--snh-border);
  border-radius: 2px;
  color: var(--snh-text);
  align-items: center;
  gap: 9px;
  font-size: 14px;
  line-height: 1.15;
  background: var(--snh-white);
}
.snh-widget-zodiac-symbol,
.snh-widget-symbol {
  color: var(--snh-pink);
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif;
  font-style: normal;
  line-height: 1;
}
.snh-widget-zodiac-symbol { flex: 0 0 27px; font-size: 27px; text-align: center; }
.snh-widget-signs a strong { overflow: hidden; max-width: 100%; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.snh-widget-signs a:hover,
.snh-widget-signs a:focus-visible { border-color: var(--snh-pink); color: var(--snh-pink); outline: 2px solid var(--snh-pink); outline-offset: -2px; }
.snh-widget-actions { display: flex; justify-content: flex-end; }
.snh-widget-button {
  display: inline-flex;
  width: auto;
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 2px;
  color: var(--snh-white);
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  background: var(--snh-pink);
}
.snh-widget-button:hover,
.snh-widget-button:focus-visible { color: var(--snh-white); outline: 2px solid var(--snh-blue); outline-offset: 2px; background: var(--snh-pink); }
.snh-widget-sign-header { display: flex; align-items: center; gap: 13px; margin: 0 0 8px; }
.snh-widget-sign-header strong { display: block; color: var(--snh-blue-dark); font-family: "Roboto Condensed", "Arial Narrow", Arial, Helvetica, sans-serif; font-size: 23px; line-height: 1.15; }
.snh-widget-sign-header small { display: block; color: var(--snh-muted); font-size: 12px; }
.snh-widget-symbol { font-size: 44px; }
.snh-back-link { display: inline-block; margin: 18px 0 4px; color: var(--snh-blue); font-weight: 700; text-decoration: none; }
.snh-back-link:hover,
.snh-back-link:focus-visible { color: var(--snh-pink); text-decoration: underline; }

@media (max-width: 850px) {
  .snh-sign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snh-topic-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .snh-sign-grid { grid-template-columns: 1fr; }
  .snh-date-select { align-items: stretch; flex-direction: column; }
  .snh-date-select select { width: 100%; }
  .snh-sign-detail > header { align-items: flex-start; }
  .snh-detail-symbol { font-size: 52px; }
  .snh-lucky-row, .snh-footer-note { flex-direction: column; }
  .snh-footer-note span { white-space: normal; }
  .snh-archive ul { grid-template-columns: 1fr; }
}

@container snh-widget (min-width: 440px) {
  .snh-widget-signs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container snh-widget (min-width: 760px) {
  .snh-widget-signs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
}

@container snh-widget (max-width: 439px) {
  .snh-widget-heading { flex-wrap: wrap; gap: 8px 12px; }
  .snh-widget-heading time { font-size: 12px; }
  .snh-widget-actions { display: block; }
  .snh-widget-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .snh-sign-card { transition: none; }
}
