/* Ibaadat The Lady Hut — shared stylesheet, no external dependencies */

:root {
  --bg: #edeae2;
  --panel: #f7f5ef;
  --ink: #201f1a;
  --muted: #5b584e;
  --line: #c9c3b3;
  --wine: #7d1f37;
  --gold: #a9791f;
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Rockwell,Roboto Slab,DejaVu Serif,;
  font-size: 16px;
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: Avenir Next,Avenir,Liberation Sans,s;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.4rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.35rem;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.1rem;
  color: var(--wine);
}

a {
  color: var(--wine);
}

a:hover {
  color: var(--gold);
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
header.site {
  background: var(--ink);
  color: var(--bg);
  border-bottom: 4px solid var(--gold);
}

header.site .wrap {
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  font-family: Avenir Next,Avenir,Liberation Sans,s;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
}

.brand small {
  display: block;
  font-family: Avenir Next,Avenir,Liberation Sans,s;
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.2rem;
}

nav.site {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}

nav.site a {
  color: #e9e4d6;
  text-decoration: none;
  font-size: 0.85rem;
  border-bottom: 1px solid transparent;
}

nav.site a:hover,
nav.site a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Hero / lede */
.lede {
  padding: 2.25rem 0 1rem;
}

.lede .kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--wine);
  font-weight: 600;
}

.lede p.answer {
  font-size: 1.08rem;
  max-width: 62ch;
}

.lede p.answer strong {
  background: linear-gradient(transparent 60%, #f0d98a 60%);
}

main {
  padding-bottom: 3rem;
}

section {
  margin-top: 1rem;
}

/* Data table */
.table-scroll {
  overflow-x: auto;
  margin: 1rem 0 0.5rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  min-width: 480px;
}

table.data caption {
  text-align: left;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.6rem 0.8rem 0;
  caption-side: top;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data thead th {
  background: var(--ink);
  color: var(--bg);
  font-family: Avenir Next,Avenir,Liberation Sans,s;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

table.data tbody tr:nth-child(even) {
  background: #efeadd;
}

table.data td.num {
  font-weight: 700;
  color: var(--wine);
  white-space: nowrap;
}

figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.5rem 0.2rem 0;
  max-width: 62ch;
}

figure {
  margin: 1.25rem 0;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem 0.4rem;
}

figure svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 640px;
  margin: 0 auto;
}

/* Procedure */
ol.procedure {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  counter-reset: step;
}

ol.procedure li {
  counter-increment: step;
  position: relative;
  padding: 0.9rem 0.9rem 0.9rem 3.1rem;
  margin-bottom: 0.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
}

ol.procedure li::before {
  content: counter(step);
  position: absolute;
  left: 0.7rem;
  top: 0.85rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-family: Avenir Next,Avenir,Liberation Sans,s;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

ol.procedure .meta {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

ol.procedure .fail {
  display: block;
  font-size: 0.78rem;
  color: var(--wine);
  margin-top: 0.15rem;
}

ol.procedure .fail strong {
  font-style: italic;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: Avenir Next,Avenir,Liberation Sans,s;
  font-size: 1rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "Q. ";
  color: var(--wine);
}

.faq-item p {
  margin: 0.5rem 0 0;
}

.faq-item p::before {
  content: "A. ";
  color: var(--gold);
  font-weight: 700;
}

/* Callout / note box */
.note {
  border: 1px solid var(--gold);
  background: #f3ead0;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  margin: 1rem 0;
}

/* Footer */
footer.site {
  background: var(--ink);
  color: #cfcabd;
  font-size: 0.78rem;
  padding: 1.5rem 0;
  border-top: 4px solid var(--gold);
}

footer.site a {
  color: #e9e4d6;
}

/* Internal page index links */
.next-links {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
}

.next-links a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 0.9rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
}

.next-links a strong {
  display: block;
  color: var(--wine);
  font-family: Avenir Next,Avenir,Liberation Sans,s;
  margin-bottom: 0.25rem;
}

/* Responsive: cards under 480px, table->stack pattern */
@media (max-width: 480px) {
  .wrap {
    padding: 0 0.9rem;
  }

  table.data {
    min-width: 0;
  }

  table.data thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  table.data,
  table.data tbody,
  table.data tr,
  table.data td {
    display: block;
    width: 100%;
  }

  table.data tr {
    border-bottom: 2px solid var(--ink);
    padding: 0.4rem 0;
  }

  table.data td {
    border-bottom: none;
    padding: 0.3rem 0.8rem;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
  }

  table.data td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
  }

  .next-links {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 481px) and (max-width: 700px) {
  .next-links {
    grid-template-columns: 1fr 1fr;
  }
}
