/* Landlord register hub. Editorial look on top of style.css: serif headlines, ruled lines, a real timeline. */
:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --paper: #FBFAF6;
  --ink: #14182B;
  --rule: #DAD5C9;
  --open: #1E2952;
  --soon: #C9C3B4;
}

.reg h1, .reg h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.reg h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.08; max-width: 18ch; }
.reg h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin-top: 64px; padding-top: 20px; border-top: 2px solid var(--ink); }
.reg h2 .num { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); display: block; margin-bottom: 6px; }
.reg .lead { font-size: 1.25rem; color: #3D4258; max-width: 36rem; }

/* Masthead */
.masthead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .masthead { grid-template-columns: 1fr; gap: 28px; } }
.kicker { font-family: var(--mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #6B5A1E; margin: 0 0 14px; }
.kicker b { background: var(--yellow); color: var(--ink); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 6px 28px; justify-content: start; }
.facts li { border-top: 1px solid var(--rule); padding-top: 8px; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.facts span { font-size: 0.875rem; color: var(--muted); }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Checker card: looks like a slip of paper */
.slip { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 26px 26px 22px; position: relative;
  box-shadow: 0 1px 0 #fff inset, 0 14px 30px -18px rgba(20, 24, 43, 0.35); }
.slip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--navy) 0 28px, var(--yellow) 28px 36px); border-radius: 4px 4px 0 0; }
.slip h2 { border: 0; margin: 4px 0 6px; padding: 0; font-size: 1.35rem; }
.slip .row { display: flex; gap: 8px; flex-wrap: wrap; }
.slip input[type="text"] { flex: 1 1 160px; min-height: 48px; font: inherit; font-family: var(--mono); font-size: 1.1rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 8px 12px; border: 2px solid var(--border-strong); border-radius: 6px; background: #fff; }
.slip .button { min-height: 48px; }
.result { margin-top: 18px; border-top: 1px dashed var(--rule); padding-top: 16px; }
.result:empty { display: none; }
.stamp { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 2px solid currentColor; padding: 2px 8px; border-radius: 3px; transform: rotate(-2deg); color: #7A2E0E; }
.stamp.open { color: #15803D; }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0 0; }
.result dt { color: var(--muted); font-size: 0.9375rem; }
.result dd { margin: 0; font-weight: 600; }
.result .big { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }

/* Timeline (Gantt of the 9 regions) */
.timeline { margin: 20px 0 8px; border: 1px solid var(--rule); background: #fff; border-radius: 6px; overflow: hidden; }
.tl-head, .tl-row { display: grid; grid-template-columns: 190px 1fr; align-items: center; }
.tl-head { background: var(--paper); border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.tl-months { display: grid; grid-template-columns: repeat(12, 1fr); }
.tl-months span { padding: 6px 0 6px 6px; border-left: 1px solid #EEE9DE; }
.tl-row { border-bottom: 1px solid #F0ECE3; min-height: 44px; }
.tl-row:last-child { border-bottom: 0; }
.tl-row.mine { background: #FFFBEA; }
.tl-name { padding: 8px 12px; font-weight: 600; font-size: 0.9375rem; }
.tl-name small { display: block; font-weight: 400; color: var(--muted); font-size: 0.8125rem; }
.tl-track { position: relative; height: 100%; min-height: 44px;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 12 - 1px), #EEE9DE calc(100% / 12 - 1px), #EEE9DE calc(100% / 12)); }
.tl-bar { position: absolute; top: 12px; height: 20px; border-radius: 3px; background: var(--open); }
.tl-bar.later { background: var(--soon); }
.tl-today { position: absolute; top: 0; bottom: 0; width: 2px; background: #D64045; }
@media (max-width: 640px) {
  .tl-head, .tl-row { grid-template-columns: 118px 1fr; }
  .tl-name small { display: none; }
  .tl-months span:nth-child(even) { color: transparent; }
}

/* Two-column "what you need" */
.need { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
@media (max-width: 760px) { .need { grid-template-columns: 1fr; } }
.need h3 { font-family: var(--serif); font-size: 1.2rem; margin: 24px 0 6px; }
.need ol { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.need li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; padding: 10px 0; border-bottom: 1px solid #EFEBE2; }
.need li::before { content: counter(n, decimal-leading-zero); font-family: var(--mono); font-size: 0.8rem; color: var(--muted); padding-top: 3px; }
.need .when { font-size: 0.875rem; color: var(--muted); display: block; }
.tag28 { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; background: var(--chip-bg); color: var(--chip-text); border-radius: 3px; padding: 0 6px; margin-left: 6px; white-space: nowrap; }

/* Planner */
.planner table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; background: #fff; }
.planner th, .planner td { text-align: left; padding: 10px 10px; border-bottom: 1px solid #EFEBE2; vertical-align: top; }
.planner th { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--paper); }
.planner td.n { font-family: var(--mono); text-align: right; white-space: nowrap; }
.planner tfoot td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.planner .remove { background: none; border: 0; color: var(--danger-fg); font: inherit; font-size: 0.875rem; cursor: pointer; text-decoration: underline; padding: 0; }
.planner .addrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.planner .addrow input { min-height: 44px; font: inherit; font-family: var(--mono); text-transform: uppercase; padding: 8px 12px; border: 2px solid var(--border-strong); border-radius: 6px; width: 12rem; }
.planner .addrow input.count { width: 6rem; text-transform: none; }
.planner .empty { color: var(--muted); font-style: italic; }
.planner .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Penalty strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin: 20px 0; }
.strip div { padding: 16px 18px 14px 0; }
.strip div + div { border-left: 1px solid var(--rule); padding-left: 18px; }
.strip strong { font-family: var(--serif); font-size: 1.8rem; display: block; line-height: 1.1; }
.strip span { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 700px) { .strip { grid-template-columns: 1fr; } .strip div + div { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 28px 12px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-family: var(--mono); font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #3D4258; margin: 0 0 14px; max-width: 44rem; }

/* Reminder box */
.remind { background: var(--navy); color: #fff; border-radius: 6px; padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
@media (max-width: 760px) { .remind { grid-template-columns: 1fr; } }
.remind h2 { color: #fff; border: 0; margin: 0 0 8px; padding: 0; }
.remind p, .remind li { color: #D7DBEA; }
.remind ul { margin: 0; padding-left: 1.1rem; }
.remind label { color: #fff; }
.remind .consent { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.remind input[type="email"], .remind select { width: 100%; min-height: 46px; font: inherit; padding: 8px 12px; border-radius: 6px; border: 2px solid #fff; margin-bottom: 14px; }
.remind .button { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.remind .button:hover { background: #FDE047; border-color: #FDE047; color: var(--ink); }
.remind .meta, .remind .meta a { color: #B9C0D8; }
.remind .status { color: var(--ink); }

.source-line { font-size: 0.875rem; color: var(--muted); border-left: 3px solid var(--rule); padding-left: 12px; margin-top: 18px; }
.updated { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

@media print {
  .site-header, .site-footer, .slip, .remind, .planner .addrow, .planner .actions, .planner .remove, .faq summary::after { display: none !important; }
  .reg h2 { margin-top: 24px; }
  .faq details { display: block; } .faq details > * { display: block; }
}

/* fixes 27 Nov */
[hidden] { display: none !important; }
.remind input[type="email"] { max-width: none; box-sizing: border-box; }
.tl-bar { background: var(--open); }
.tl-bar.now { background: var(--yellow); box-shadow: 0 0 0 1px #B8930B inset; }
.tl-bar.past { background: var(--soon); }
.tl-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--muted); margin: 8px 0 0; }
.tl-legend i { display: inline-block; width: 18px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
details.as-table { margin-top: 10px; }
details.as-table summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 6px 0; }
.slip .next { display: inline-block; margin-top: 12px; font-weight: 600; }

/* No inline styles allowed by the CSP: everything lives here (27 Nov) */
.tl-label { font-weight: 600; }
.tl-legend i.k-later { background: var(--open); }
.tl-legend i.k-now { background: var(--yellow); }
.tl-legend i.k-past { background: var(--soon); }
.slip-foot { margin: 14px 0 0; }
.fee-form { max-width: 640px; }
.fee-row { display: flex; gap: 16px; flex-wrap: wrap; }
.fee-field { margin: 0; }
.field { min-height: 44px; font: inherit; padding: 6px 10px; border: 2px solid var(--border-strong); border-radius: 6px; background: #fff; }
.field-n { width: 7rem; }
.fee-out { margin: 16px 0 0; }
.after-need { margin-top: 14px; }
.choice.second { margin-top: 8px; }
.remind-note { margin: 12px 0; }
.planner th.r { text-align: right; }
.mono { font-family: var(--mono); }
.status.good { background: var(--success-bg); color: #14532D; }
.status.bad { background: var(--danger-bg); color: #7F1D1D; }

/* FAQ: cards with breathing room inside */
.reg .faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0 20px; margin: 0 0 10px; }
.reg .faq summary { padding: 16px 32px 16px 0; color: var(--ink); }
.reg .faq summary::after { right: 0; top: 12px; }
.reg .faq details[open] summary { margin-bottom: 0; }
.reg .faq details p { padding: 0 0 6px; }

/* Timeline: keep month columns and bars on the same grid at any width */
.tl-head, .tl-row { grid-template-columns: 190px minmax(0, 1fr); }
.tl-months { grid-template-columns: repeat(12, minmax(0, 1fr)); min-width: 0; }
.tl-months span { overflow: hidden; white-space: nowrap; }
@media (max-width: 640px) {
  .tl-head, .tl-row { grid-template-columns: 104px minmax(0, 1fr); }
  .tl-months span { padding-left: 2px; font-size: 0.62rem; }
  .tl-name { padding: 8px 8px; font-size: 0.8125rem; }
}
