/* Planning hub (/planning/), 27 Oct 2026. Loaded after site.css on the hub pages only.
   Every class is pl- prefixed: older pages already use generic names (.band once turned a white
   section terracotta), so nothing here is allowed to reuse one. */

/* The two-path choice at the top of the hub */
.pl-paths { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 28px 0 8px; }
@media (min-width: 760px) { .pl-paths { grid-template-columns: 1fr 1fr; } }
.pl-path { display: block; background: var(--white); border: 2px solid var(--line); border-radius: 16px; padding: 22px 22px 20px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.pl-path:hover, .pl-path:focus-visible { border-color: var(--terracotta); transform: translateY(-2px); }
.pl-path .pl-path-k { font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta-deep); font-weight: 600; }
.pl-path .pl-path-h { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; margin: 6px 0 8px; }
.pl-path p { margin: 0 0 12px; }
.pl-path .pl-path-go { font-weight: 600; color: var(--terracotta-deep); }

/* Not a planning consultant: shown on every hub page */
.pl-note { background: var(--sand); border-left: 4px solid var(--charcoal); border-radius: 0 14px 14px 0; padding: 14px 18px; margin: 22px 0; font-size: .95rem; }
.pl-note strong { display: block; margin-bottom: 2px; }

/* Sources block with last checked dates */
.pl-sources { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; font-size: .9rem; }
.pl-sources ul { padding-left: 18px; }
.pl-sources li { margin: 6px 0; }
.pl-sources .pl-checked { color: #5b524a; white-space: nowrap; }

/* Tables (timelines, fees) */
.pl-table-wrap { overflow-x: auto; margin: 16px 0 22px; -webkit-overflow-scrolling: touch; }
.pl-table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .95rem; background: var(--white); }
.pl-table th, .pl-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.pl-table th { background: var(--sand); }

/* County grid on the hub */
.pl-counties { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 16px 0 24px; }
.pl-counties a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-decoration: none; color: var(--ink); font-weight: 600; }
.pl-counties a:hover { border-color: var(--terracotta); }
.pl-counties span { display: block; font-weight: 400; font-size: .85rem; color: #5b524a; }

/* Steps list on the process page */
.pl-steps { counter-reset: pl; list-style: none; padding: 0; }
.pl-steps > li { counter-increment: pl; position: relative; padding-left: 46px; margin: 0 0 14px; }
.pl-steps > li::before { content: counter(pl); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--terracotta); color: var(--cream); display: grid; place-items: center; font-weight: 600; font-family: var(--sans); }

/* The shared form */
.pl-form-band { background: var(--sand); padding: clamp(32px, 5vw, 56px) 0; margin: 40px 0 0; }
.pl-form-card { background: var(--white); border-radius: 18px; padding: clamp(20px, 4vw, 36px); max-width: 760px; margin: 0 auto; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.pl-form-card h2 { margin-top: 0; }
.pl-form [hidden] { display: none !important; }
.pl-form label, .pl-form legend { display: block; font-weight: 600; margin: 14px 0 6px; padding: 0; }
.pl-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pl-form input[type=text], .pl-form input[type=email], .pl-form input[type=tel], .pl-form select, .pl-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfbfa8; border-radius: 6px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.pl-form select { appearance: auto; }
.pl-form textarea { min-height: 90px; resize: vertical; }
.pl-form .pl-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) { .pl-form .pl-row { grid-template-columns: 1fr 1fr; } }
.pl-form .pl-hint { font-weight: 400; font-size: .88rem; color: #5b524a; margin: 4px 0 0; }
.pl-form .pl-ticks { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) { .pl-form .pl-ticks { grid-template-columns: 1fr 1fr; } }
.pl-form .pl-tick { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.pl-form .pl-tick input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.pl-form .pl-drop { border: 2px dashed #cfbfa8; border-radius: 10px; padding: 18px; text-align: center; background: var(--cream); }
.pl-form .pl-drop input { width: 100%; }
.pl-form .pl-files { list-style: none; padding: 0; margin: 10px 0 0; font-size: .92rem; }
.pl-form .pl-files li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pl-form .pl-files button { background: none; border: 0; color: var(--terracotta-deep); font: inherit; cursor: pointer; text-decoration: underline; }
.pl-form .pl-out { background: var(--sand); border-radius: 10px; padding: 12px 14px; margin: 12px 0 0; font-size: .95rem; }
.pl-form .pl-consent { margin-top: 18px; }
.pl-form .pl-small { font-size: .85rem; color: #5b524a; margin: 12px 0 0; }
.pl-form .pl-err { display: none; background: #fdecea; color: #8a1c12; border-radius: 8px; padding: 12px 14px; margin: 14px 0 0; }
.pl-form .pl-sending { display: none; margin: 14px 0 0; font-weight: 600; }
.pl-form button[type=submit] { margin-top: 18px; width: 100%; }
@media (min-width: 640px) { .pl-form button[type=submit] { width: auto; } }
.pl-done { display: none; }
.pl-done.pl-show { display: block; }
.pl-done .pl-done-h { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 8px; }

/* Extension Planner estimator */
.pl-est { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 28px); margin: 22px 0; }
.pl-est-out { margin-top: 16px; }
.pl-est-out dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.pl-est-out dt { font-weight: 600; margin-top: 12px; }
.pl-est-out dd { margin: 2px 0 0; }
.pl-est-out .pl-fit { color: #5b524a; }

/* Long council email addresses and URLs (forwardplanningandheritage@wicklowcoco.ie) must wrap on
   a 375px phone rather than push the page sideways. */
.guide-article p, .guide-article li, .pl-sources li { overflow-wrap: break-word; }

/* "Where are you with it?" stage picker on the hub (27 Oct 2026). Without JS every panel shows. */
.pl-stages { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3.5vw, 30px); margin: 26px 0 8px; }
.pl-stages > h2 { margin-top: 0; }
.pl-stage-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.pl-stage-btn { display: inline-block; padding: 10px 14px; border: 2px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.pl-stage-btn:hover, .pl-stage-btn:focus-visible { border-color: var(--terracotta); }
.pl-stage-btn.is-on { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); }
.pl-track { display: none; }
.pl-js .pl-track { display: flex; list-style: none; padding: 0; margin: 18px 0 6px; gap: 4px; }
.pl-track li { flex: 1; position: relative; padding-top: 16px; font-size: .78rem; color: #5b524a; text-align: center; line-height: 1.25; }
.pl-track li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--line); }
.pl-track li.is-done::before { background: var(--terracotta); opacity: .45; }
.pl-track li.is-here::before { background: var(--terracotta); }
.pl-track li.is-here { color: var(--ink); font-weight: 700; }
.pl-stage { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.pl-js .pl-stage { border-top: 0; margin-top: 8px; padding-top: 0; }
.pl-stage h3 { margin: 6px 0 4px; }
.pl-stage-k { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta-deep); font-weight: 600; margin: 8px 0 6px; }
.pl-next { padding-left: 22px; margin: 0 0 12px; }
.pl-next li { margin: 0 0 8px; }
.pl-next a { font-weight: 600; }
.pl-stage-cta { margin: 10px 0 6px; }
.pl-ref-note { background: var(--sand); border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.pl-later { background: var(--sand); border-radius: 12px; padding: 14px 16px; margin-top: 14px; overflow-wrap: anywhere; }
