/*
Theme Name: Flyingcastle
Theme URI: https://flyingcastle.de/
Author: Flyingcastle
Description: Freundliches One-Page-Theme fuer den Huepfburgverleih flyingcastle.de in Dieburg.
Version: 1.0.66
Text Domain: flyingcastle
*/

:root {
  --ink: #17212b;
  --muted: #5f6b76;
  --paper: #fffaf1;
  --white: #ffffff;
  --sun: #ffd447;
  --coral: #f06449;
  --sky: #2f80ed;
  --leaf: #28a66a;
  --line: #e6dfd1;
  --shadow: 0 18px 48px rgba(23, 33, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 250, 241, 0.92);
  border-bottom: 1px solid rgba(230, 223, 209, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 180px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  background: var(--white);
  border: 3px solid var(--sun);
  border-radius: 8px;
}

.brand-mark img {
  position: absolute;
  top: -25%;
  left: -45%;
  width: 300%;
  height: 300%;
  max-width: none;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: clamp(12px, 2.5vw, 28px);
  color: var(--muted);
  font-weight: 700;
}

.main-nav a,
.site-footer a,
.text-link {
  text-decoration: none;
}

.main-nav a:hover,
.text-link:hover {
  color: var(--sky);
}

.header-action,
.primary-button,
.secondary-button,
.about-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.header-action,
.primary-button {
  color: var(--white);
  background: var(--sky);
  box-shadow: 0 8px 20px rgba(47, 128, 237, 0.25);
}

.secondary-button {
  color: var(--ink);
  background: var(--sun);
}

.about-button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--white);
  background: var(--coral);
  border: 1px solid var(--coral);
  box-shadow: 0 8px 20px rgba(240, 100, 73, 0.25);
  font: inherit;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: calc(88vh - 71px);
  margin-top: 71px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 54px clamp(18px, 6vw, 80px) 56px;
  background: linear-gradient(90deg, var(--paper) 0 54%, #000000 54% 100%);
}

.hero img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.8) 0%, rgba(255, 250, 241, 0.68) 40%, rgba(255, 250, 241, 0.32) 60%, rgba(255, 250, 241, 0.02) 82%),
    linear-gradient(0deg, rgba(23, 33, 43, 0.02), rgba(23, 33, 43, 0.02));
}

.hero-content {
  position: relative;
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.5rem, 4.3vw, 4rem);
  line-height: 0.98;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 580px;
  margin: 22px 0 0;
  color: #33414f;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 550px;
  margin: 34px 0 0;
}

.trust-row div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(230, 223, 209, 0.86);
  border-radius: 8px;
}

.trust-row dt {
  font-weight: 900;
}

.trust-row dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.quick-info div {
  padding: 24px clamp(18px, 5vw, 54px);
  background: var(--white);
}

.quick-info strong,
.quick-info span {
  display: block;
}

.quick-info span {
  margin-top: 4px;
  color: var(--muted);
}

.section,
.band,
.faq-section,
.contact {
  padding: 78px clamp(18px, 6vw, 80px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.castle-heading {
  max-width: none;
}

.castle-section-title {
  white-space: nowrap;
}

.compact {
  margin-bottom: 28px;
}

.gallery-section {
  background: var(--white);
}

.gallery-tabs {
  display: grid;
  gap: 18px;
}

.tab-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 10px;
  scrollbar-width: thin;
}

.tab-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink);
  background: #f7fafc;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tab-button:hover,
.tab-button:focus-visible,
.tab-button.is-active {
  color: var(--white);
  background: var(--sky);
  border-color: var(--sky);
}

.tab-panels {
  background: #f7fafc;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
  overflow: hidden;
}

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: stretch;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel img {
  display: block;
  width: 100%;
  height: min(68vw, 720px);
  min-height: 420px;
  object-fit: contain;
  background: #071d4c;
}

.tab-caption {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  background: var(--ink);
  color: var(--white);
}

.tab-caption h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.castle-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.castle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.08);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.castle-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.featured {
  border-color: rgba(240, 100, 73, 0.5);
  box-shadow: var(--shadow);
}

.castle-top {
  height: 130px;
}

.castle-photo {
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0;
  background: #071d4c;
  border-bottom: 1px solid var(--line);
}

.castle-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portrait-photo img {
  object-position: center 38%;
}

.mini {
  background:
    radial-gradient(circle at 20% 105%, var(--sun) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--sky) 0 40%, var(--leaf) 40% 68%, var(--sun) 68%);
}

.classic {
  background:
    radial-gradient(circle at 76% 20%, var(--sun) 0 14%, transparent 15%),
    linear-gradient(135deg, var(--coral) 0 33%, var(--sky) 33% 66%, var(--sun) 66%);
}

.party {
  background:
    radial-gradient(circle at 90% 90%, var(--coral) 0 16%, transparent 17%),
    linear-gradient(135deg, var(--leaf) 0 34%, var(--sun) 34% 64%, var(--sky) 64%);
}

.castle-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.castle-body h3 {
  font-size: 1.08rem;
  min-height: 2.7em;
}

.castle-body p {
  font-size: 0.92rem;
  min-height: 4.15em;
  margin: 4px 0 0;
}

.castle-body li {
  font-size: 0.92rem;
}

.castle-body ul {
  margin: 4px 0 18px;
}

.detail-trigger {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.detail-trigger:hover,
.detail-trigger:focus-visible {
  background: var(--sky);
}

.badge {
  position: absolute;
  top: -18px;
  right: 18px;
  padding: 7px 12px;
  color: var(--white);
  background: var(--coral);
  border-radius: 8px;
  font-weight: 900;
}

.castle-body p,
.steps p,
.contact-copy p,
.faq-list p,
.two-column p {
  color: var(--muted);
}

ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

.band {
  background: #eaf6ff;
}

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

.steps article {
  padding: 26px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid #cfe6fb;
}

.steps span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--leaf);
  border-radius: 50%;
  font-weight: 900;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--sky);
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-list span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--white);
  background: var(--leaf);
  border-radius: 50%;
  font-weight: 900;
}

.faq-section {
  background: #fff0e8;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

details {
  background: var(--white);
  border: 1px solid #f2cbbd;
  border-radius: 8px;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 20px 18px;
}

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 6vw, 70px);
  background: var(--ink);
  color: var(--white);
}

.contact .eyebrow {
  color: var(--sun);
}

.contact-copy p {
  max-width: 520px;
  color: #cbd5df;
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact-options a {
  padding: 12px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  text-decoration: none;
}

.contact-options .whatsapp-option {
  color: #0b2d1c;
  background: #25d366;
  border-color: #25d366;
  font-weight: 900;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  color: var(--ink);
}

.contact-form button[type="submit"] {
  min-height: 52px;
  font-size: 1.1rem;
  font-weight: 900;
}

.contact-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.72;
}

label {
  display: grid;
  gap: 8px;
  min-width: 0;
  font-weight: 800;
}

.contact-form > * {
  min-width: 0;
  max-width: 100%;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid #d4dce4;
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  inline-size: 100%;
  min-width: 0;
  max-inline-size: 100%;
  max-width: 100%;
  overflow: hidden;
}

input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

.full {
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--leaf);
  font-weight: 800;
}

.form-note.is-success {
  color: var(--leaf);
}

.form-note.is-error {
  color: #b42318;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 6vw, 80px);
  color: #44515e;
  background: var(--white);
}

.site-footer p {
  margin: 0;
}

.footer-credit {
  color: #7a858f;
  font-size: 0.72rem;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-link {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--sky);
}

.modal-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(23, 33, 43, 0.68);
}

.modal-backdrop[hidden] {
  display: none;
}

.castle-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(300px, 1.08fr);
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.about-modal {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.legal-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.legal-modal-content {
  padding: clamp(30px, 6vw, 56px);
}

.legal-details {
  display: grid;
  gap: 10px;
  margin: 24px 0 18px;
}

.legal-details div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.legal-details dt {
  color: var(--muted);
  font-weight: 800;
}

.legal-details dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.legal-details a {
  color: var(--sky);
}

.legal-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.about-modal-content {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(24px, 5vw, 48px);
  padding: clamp(30px, 6vw, 56px);
}

.about-photo {
  margin: 0;
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.about-text > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--sun);
}

.modal-media {
  min-height: 520px;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 212, 71, 0.95) 0 11%, transparent 12%),
    linear-gradient(135deg, var(--leaf), var(--sky));
  background-color: #071d4c;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.modal-content {
  padding: clamp(28px, 5vw, 48px);
}

.modal-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.modal-content p {
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-grid div {
  padding: 14px;
  background: #f7fafc;
  border: 1px solid #dbe5ee;
  border-radius: 8px;
}

.detail-grid dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.detail-grid dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.modal-list {
  padding: 18px;
  background: #fff8df;
  border: 1px solid #f2df9c;
  border-radius: 8px;
}

.modal-list ul {
  margin-top: 12px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1200px) {
  .castle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .main-nav {
    display: none;
  }

  .castle-section-title {
    white-space: normal;
  }

  .steps,
  .quick-info,
  .two-column,
  .contact,
  .tab-panel,
  .castle-modal {
    grid-template-columns: 1fr;
  }

  .tab-panel img {
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .modal-media {
    min-height: 280px;
  }

  .hero {
    min-height: calc(86vh - 71px);
    padding: 48px 50% 48px clamp(28px, 5vw, 48px);
    background: linear-gradient(90deg, var(--paper) 0 54%, #000000 54% 100%);
  }

  .hero img {
    width: 46%;
    height: 100%;
    object-position: center;
    opacity: 1;
    background: #000000;
  }

  .hero-shade {
    display: none;
  }

  .castle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-modal-content {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    max-height: 360px;
    object-position: center 35%;
  }

  .hero-content {
    max-width: 100%;
  }

  h1 {
    max-width: 12ch;
    font-size: 2.7rem;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .hero-actions .about-button {
    min-height: 46px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 800;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: sticky;
    padding: 12px 16px;
  }

  .brand {
    min-width: auto;
  }

  .brand small {
    display: none;
  }

  .header-action {
    min-height: 42px;
    padding: 0 14px;
  }

  .hero {
    min-height: auto;
    margin-top: 0;
    padding: 286px 18px 42px;
    background: var(--paper);
  }

  .hero img {
    top: 0;
    bottom: auto;
    object-position: center;
    width: 100%;
    height: 260px;
    opacity: 1;
    background: #000000;
  }

  .hero-shade {
    display: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button,
  .hero-actions .about-button {
    width: 100%;
    min-height: 48px;
  }

  .hero-actions .about-button {
    color: var(--white);
    background: var(--coral);
    border-color: var(--coral);
    box-shadow: 0 8px 20px rgba(240, 100, 73, 0.25);
  }

  h1 {
    max-width: 100%;
    font-size: 2.05rem;
  }

  .castle-grid {
    grid-template-columns: 1fr;
  }

  .castle-body {
    padding: 12px;
  }

  .castle-body h3 {
    min-height: 0;
    margin: 0 0 6px;
  }

  .castle-body p {
    min-height: 0;
    margin: 0 0 8px;
    line-height: 1.4;
  }

  .castle-body ul {
    margin: 0 0 14px;
    padding-left: 20px;
  }

  .castle-body li + li {
    margin-top: 4px;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .section,
  .band,
  .faq-section,
  .contact {
    padding: 56px 18px;
  }

  .tab-list {
    margin-right: -18px;
    padding-right: 18px;
  }

  .tab-button {
    max-width: 76vw;
    white-space: normal;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .contact-form button[type="submit"] {
    min-height: 54px;
    font-size: 1.16rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-credit {
    text-align: left;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
  }

  .legal-modal-content {
    padding: 28px 20px 22px;
  }

  .legal-details div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .castle-modal {
    max-height: calc(100vh - 20px);
  }

  .castle-modal .modal-media {
    min-height: 170px;
  }

  .castle-modal .modal-content {
    padding: 18px;
  }

  .castle-modal .modal-content h2 {
    margin: 4px 0 8px;
    font-size: 1.75rem;
  }

  .castle-modal .modal-content > p {
    margin: 0;
    font-size: 0.95rem;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
  }

  .detail-grid div {
    padding: 10px;
  }

  .detail-grid dd {
    font-size: 0.92rem;
  }

  .modal-actions .primary-button,
  .modal-actions .secondary-button {
    width: 100%;
  }

  .modal-actions .secondary-button {
    font-size: 1.08rem;
    font-weight: 900;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 1.78rem;
  }
}
