/* Inner pages rebuilt in the landing-page visual language.
   Loaded after institutional-landscape.css and integration.css by
   includes/inner_page_head.php. Tokens (--navy, --orange, --paper, --rule,
   --display, --body, --shell, --gutter) come from institutional-landscape.css.
   The !important on display-face rules counters css/font-override.css, which
   forces Poppins on every text element. */

/* ---------- Page banner ---------- */
.page-banner {
  background: var(--navy);
  color: #f4f0df;
}

.page-banner__inner {
  padding-block: clamp(40px, 4.5vw, 56px) clamp(32px, 3.5vw, 44px);
}

#main-content .page-banner__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  font-family: var(--display) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page-banner__crumb li { display: inline-flex; align-items: center; gap: 10px; }
#main-content .page-banner__crumb a { min-height: 32px; display: inline-flex; align-items: center; color: rgba(244,240,223,.72); font-family: var(--display) !important; text-decoration: none; }
.page-banner__crumb a:hover, .page-banner__crumb a:focus-visible { color: #ffffff; }
.page-banner__crumb li + li::before { width: 14px; height: 1px; background: var(--orange); content: ""; }
.page-banner__crumb [aria-current="page"] { color: #ff9d69; }

.page-banner h1 {
  max-width: 12ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 4.6vw, 66px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
}

.page-banner__lede {
  max-width: 62ch;
  margin: 22px 0 0;
  color: rgba(244,240,223,.82);
  font-size: 16px;
  line-height: 1.7;
}

.page-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 40px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(244,240,223,.5);
}

.page-stats > div {
  min-width: 0;
  padding: 0 clamp(11px, 1.4vw, 22px);
  border-left: 1px solid rgba(244,240,223,.22);
}

.page-stats > div:first-child { padding-left: 0; border-left: 0; }

#main-content .page-stats dt {
  margin: 0;
  color: #f4f0df;
  font-family: var(--display) !important;
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.page-stats dd {
  margin: 7px 0 0;
  color: rgba(244,240,223,.8);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.inner-section { padding-top: clamp(56px, 6vw, 84px); }
.inner-section--last { padding-bottom: clamp(72px, 8vw, 108px); }

.inner-section .section-marker { margin-bottom: clamp(30px, 3.5vw, 42px); }

.inner-section h2 {
  margin: 0 0 28px;
  color: var(--navy);
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.inner-section h2.is-sub { font-size: clamp(30px, 3.1vw, 44px); }

.inner-split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.inner-figure { margin: 0; }

.inner-figure img {
  width: 100%;
  height: 460px;
  display: block;
  object-fit: cover;
  filter: saturate(.72) contrast(1.06);
}

#main-content .inner-figure figcaption {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--slate);
  font-family: var(--display) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.inner-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 52px);
}

.inner-columns p,
.inner-prose p {
  margin: 0;
  color: #384349;
  font-size: 15px;
  line-height: 1.8;
}

.inner-prose p + p { margin-top: 18px; }

/* ---------- Fact list (label | value rows, grouped) ---------- */
.fact-groups {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.fact-groups h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.fact-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  border-top: 2px solid var(--navy);
}

.fact-list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(200px, 380px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

#main-content .fact-list dt {
  margin: 0;
  color: var(--navy);
  font-family: var(--display) !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.fact-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}

#main-content .fact-list dd b {
  color: var(--navy);
  font-family: var(--display) !important;
  font-weight: 700;
}

.fact-list dd small {
  display: block;
  margin-top: 4px;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.5;
}

.fact-list dd ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list dd li {
  position: relative;
  padding-left: 26px;
}

.fact-list dd li::before {
  position: absolute;
  top: 11px;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--orange);
  content: "";
}

/* ---------- Highlights (numbered two-column grid) ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy);
}

.highlights > li {
  min-height: 94px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 16px;
  padding: 22px 18px 20px 0;
  border-bottom: 1px solid var(--rule);
}

.highlights > li:nth-child(odd) { border-right: 1px solid var(--rule); }
.highlights > li:nth-child(even) { padding-left: 20px; }

#main-content .highlights i {
  color: var(--orange-dark);
  font-family: var(--display) !important;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

#main-content .highlights p {
  margin: 0;
  color: var(--ink);
  font-family: var(--display) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

#main-content .highlights p span {
  color: #384349;
  font-family: var(--body) !important;
  font-weight: 400;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .inner-split { grid-template-columns: minmax(0, 1fr); }
  .inner-figure img { height: 320px; }
  .page-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .page-stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}

@media (max-width: 640px) {
  .inner-columns { grid-template-columns: minmax(0, 1fr); }
  .fact-list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .highlights { grid-template-columns: minmax(0, 1fr); }
  .highlights > li:nth-child(odd) { border-right: 0; }
  .highlights > li:nth-child(even) { padding-left: 0; }
  .page-stats dt { white-space: normal; }
}

/* ---------- apiip.php: logo figure + infrastructure gallery ---------- */
.inner-figure--logo img {
  height: auto;
  max-height: 460px;
  object-fit: contain;
  filter: none;
}

.inner-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px) clamp(20px, 2.5vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.inner-gallery .inner-figure img { height: 190px; }

.inner-gallery .inner-figure figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}

.inner-gallery .inner-figure figcaption img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
  filter: none;
}

@media (max-width: 960px) {
  .inner-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .inner-gallery { grid-template-columns: minmax(0, 1fr); }
}

/* connectivity.php: mode cards, travel-time table, route diagram, helpdesk strip */
.mode-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mode-card {
  min-width: 0;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--navy);
}

.mode-card--rail { border-top-color: var(--slate); }
.mode-card--road { border-top-color: var(--orange); }

.mode-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--mist);
  color: var(--navy);
}

.mode-card--rail .mode-card__icon { color: var(--slate); }
.mode-card--road .mode-card__icon { color: var(--orange-dark); }
.mode-card__icon svg { width: 22px; height: 22px; }

.mode-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.mode-card p {
  margin: 0;
  color: #384349;
  font-size: 14px;
  line-height: 1.7;
}

.reach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 24px;
  margin-top: 24px;
}

.travel-times {
  border: 1px solid var(--rule);
  background: var(--white);
}

.travel-times__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: var(--navy);
  color: var(--white);
}

#main-content .travel-times__head strong { font-family: var(--display) !important; font-size: 14px; font-weight: 700; }
#main-content .travel-times__head span { color: #ff9d69; font-family: var(--display) !important; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.travel-times table { width: 100%; margin: 0; border-collapse: collapse; }
.travel-times td { padding: 13px 22px; border-bottom: 1px solid var(--mist); color: var(--ink); font-size: 14px; line-height: 1.4; vertical-align: top; }
.travel-times td:first-child { font-weight: 600; }
.travel-times td:nth-child(2) { color: var(--slate); }
#main-content .travel-times td:last-child { text-align: right; white-space: nowrap; font-family: var(--display) !important; font-weight: 700; color: var(--navy); }
.travel-times tr:last-child td { border-bottom: 0; }
.travel-times__note { margin: 0; padding: 12px 22px; background: var(--paper); border-top: 1px solid var(--mist); color: var(--slate); font-size: 12px; line-height: 1.5; }

.route-diagram {
  padding: 24px;
  border: 1px solid var(--rule);
  background: var(--white);
}

.route-diagram h3 { margin: 0 0 4px; color: var(--navy); font-size: 14px; }
.route-diagram > p { margin: 0 0 10px; color: var(--slate); font-size: 12px; }
.route-diagram svg { width: 100%; height: auto; display: block; }
.route-diagram__legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0 0; padding: 0; list-style: none; color: #384349; font-size: 12px; }
.route-diagram__legend li { display: inline-flex; align-items: center; gap: 6px; }
.route-diagram__legend i { display: block; width: 16px; height: 0; }
.route-diagram__legend .is-air { border-top: 2.5px dotted var(--navy); }
.route-diagram__legend .is-rail { border-top: 2.5px solid var(--slate); }
.route-diagram__legend .is-road { border-top: 2.5px dashed var(--orange); }

.helpdesk-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 26px 32px;
  background: var(--navy);
  color: var(--white);
}

.helpdesk-strip h3 { margin: 0; color: var(--white); font-size: 18px; }
.helpdesk-strip p { margin: 4px 0 0; color: rgba(244,240,223,.78); font-size: 14px; line-height: 1.5; }
.helpdesk-strip__actions { display: flex; flex: none; gap: 12px; }

#main-content .helpdesk-strip__actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  font-family: var(--display) !important;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background 220ms ease, border-color 220ms ease;
}

#main-content .helpdesk-strip__actions a.is-primary { background: var(--orange); color: var(--navy); }
#main-content .helpdesk-strip__actions a.is-primary:hover { background: #ff7a2e; }
#main-content .helpdesk-strip__actions a.is-secondary { border: 1px solid rgba(255,255,255,.4); color: var(--white); }
#main-content .helpdesk-strip__actions a.is-secondary:hover { border-color: var(--white); }

@media (max-width: 960px) {
  .mode-cards { grid-template-columns: minmax(0, 1fr); }
  .reach-grid { grid-template-columns: minmax(0, 1fr); }
  .helpdesk-strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .travel-times td { padding: 12px 16px; font-size: 13px; }
  .helpdesk-strip__actions { flex-direction: column; width: 100%; }
  #main-content .helpdesk-strip__actions a { justify-content: center; }
}

/* land_banks.php: stats, toolbar, sortable/filterable estate table, notes */
.land-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}

.land-toolbar__search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--slate);
}

.land-toolbar__search svg { width: 16px; height: 16px; flex: none; }
.land-toolbar__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.land-toolbar__search input:focus-visible { outline: 0; }
.land-toolbar__search:focus-within { border-color: var(--navy); }

.land-toolbar select {
  min-height: 48px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--navy);
  font-family: var(--display) !important;
  font-size: 13px;
  font-weight: 700;
}

.land-toolbar__units { display: inline-flex; border: 1px solid var(--rule); background: var(--white); }

#main-content .land-toolbar__units button {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  background: var(--white);
  color: var(--slate);
  font-family: var(--display) !important;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

#main-content .land-toolbar__units button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

.land-table-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--white); }
.land-table { width: 100%; min-width: 760px; margin: 0; border-collapse: collapse; }
.land-table th, .land-table td { padding: 14px 20px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--mist); }
.land-table thead th { background: var(--paper); color: var(--slate); font-family: var(--display) !important; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
#main-content .land-table thead button { all: unset; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; color: inherit; font: inherit; font-family: var(--display) !important; letter-spacing: .07em; text-transform: uppercase; }
#main-content .land-table thead button:hover, #main-content .land-table thead button:focus-visible { color: var(--navy); }
.land-table thead button[aria-sort="ascending"]::after { content: "\25B2"; font-size: 9px; }
.land-table thead button[aria-sort="descending"]::after { content: "\25BC"; font-size: 9px; }
.land-table tbody tr:hover { background: #fbfcfa; }
.land-table td.is-sn { color: var(--slate); font-size: 12.5px; font-weight: 600; }
#main-content .land-table td.is-name { color: var(--navy); font-family: var(--display) !important; font-size: 14px; font-weight: 700; }
.land-table .land-pill { display: inline-block; padding: 4px 12px; background: var(--mist); color: var(--navy); font-size: 12px; font-weight: 600; white-space: nowrap; }
#main-content .land-table td.is-area { color: var(--navy); font-family: var(--display) !important; font-size: 14px; font-weight: 700; white-space: nowrap; }
.land-table td.is-area small { margin-left: 4px; color: var(--slate); font-size: 12px; font-weight: 400; }
.land-table td.is-action { text-align: right; }
#main-content .land-table td.is-action a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; background: var(--orange); color: var(--navy); font-family: var(--display) !important; font-size: 12px; font-weight: 700; text-decoration: none; }
#main-content .land-table td.is-action a:hover { background: #ff7a2e; }
.land-table tfoot td { background: var(--navy); color: var(--white); border-bottom: 0; }
#main-content .land-table tfoot td.is-total-label { font-family: var(--display) !important; font-size: 13px; font-weight: 700; }
#main-content .land-table tfoot td.is-area { color: var(--white); font-size: 15px; }
.land-table tfoot td.is-area small { color: rgba(255,255,255,.7); }
.land-table tr[hidden] { display: none; }
.land-empty { margin: 0; padding: 22px 20px; color: var(--slate); font-size: 14px; }

.land-notes {
  margin-top: 22px;
  padding: 18px 24px;
  border: 1px solid var(--rule);
  background: var(--white);
}

.land-notes h3 { margin: 0 0 8px; color: var(--orange-dark); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.land-notes p { margin: 0; color: #384349; font-size: 13px; line-height: 1.7; }
.land-notes p + p { margin-top: 8px; }

@media (max-width: 640px) {
  .land-toolbar__search { flex-basis: 100%; }
}

/* inner_line_permit.php: kicker, split layout, apply card, steps */
.page-banner__kicker {
  margin: 0 0 18px;
  color: #ff9d69;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ilp-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.ilp-lead {
  margin: 0 0 40px;
  color: #384349;
  font-size: 17px;
  line-height: 1.75;
}
#main-content .ilp-lead b { color: var(--navy); font-family: var(--display) !important; font-weight: 700; }

.ilp-facts { border-top: 2px solid var(--navy); }
.ilp-facts > div { grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); padding: 20px 0; }
#main-content .ilp-facts dd b { color: var(--navy); font-family: var(--display) !important; font-weight: 700; }
#main-content .ilp-facts dd b a { color: inherit; text-decoration: none; }

.ilp-aside { display: flex; flex-direction: column; gap: 20px; }

.ilp-apply {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 40px 36px;
  background: var(--navy);
  color: #ff9d69;
}
#main-content .ilp-apply h2 {
  margin: 0;
  color: var(--white);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.ilp-apply p { margin: 0; color: rgba(244,240,223,.82); font-size: 15px; line-height: 1.7; }
#main-content .ilp-apply__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  margin-top: 6px;
  padding: 16px 24px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--display) !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}
#main-content .ilp-apply__cta:hover,
#main-content .ilp-apply__cta:focus-visible { background: #ff7a2e; color: var(--white); }
#main-content .ilp-apply__note {
  color: rgba(244,240,223,.62);
  font-family: var(--display) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ilp-tip {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  align-items: start;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--orange-dark);
}
.ilp-tip p { margin: 0; color: #384349; font-size: 14px; line-height: 1.65; }
#main-content .ilp-tip b { color: var(--navy); font-family: var(--display) !important; font-weight: 700; }

.ilp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy);
}
.ilp-steps > li {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 16px;
  padding: 22px 24px 24px 0;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.ilp-steps > li + li { padding-left: 24px; }
.ilp-steps > li:last-child { border-right: 0; padding-right: 0; }
#main-content .ilp-steps i {
  color: var(--orange-dark);
  font-family: var(--display) !important;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}
#main-content .ilp-steps p {
  margin: 0;
  color: var(--ink);
  font-family: var(--display) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.ilp-steps p span {
  display: block;
  margin-top: 6px;
  color: #384349;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .ilp-split { grid-template-columns: minmax(0, 1fr); }
  .ilp-steps { grid-template-columns: minmax(0, 1fr); }
  .ilp-steps > li { border-right: 0; padding-right: 0; }
  .ilp-steps > li + li { padding-left: 0; }
}

@media (max-width: 640px) {
  .ilp-facts > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ilp-apply { padding: 28px 24px; }
}

@media (max-width: 767px) {
 .land-table { display: block; min-width: 0; }
 .land-table thead, .land-table tbody, .land-table tfoot { display: block; }
 .land-table thead tr { display: flex; justify-content: space-between; }
 .land-table thead th { padding: 10px; }
 .land-table thead th:first-child, .land-table thead th:nth-child(3), .land-table thead th:last-child { display: none; }
 .land-table tbody tr { display: grid; grid-template-columns: 1fr; padding: 14px; border-bottom: 1px solid var(--rule); }
 .land-table tbody tr[hidden] { display: none; }
 .land-table td { display: block; padding: 6px 0; border: 0; }
 .land-table td.is-sn { display: none; }
 .land-table td.is-area { white-space: normal; }
 .land-table td[data-label]::before { content: attr(data-label) ": "; font-size: 12px; font-weight: 400; }
 .land-table td.is-action { text-align: left; }
 .land-table tfoot tr { display: block; padding: 14px; background: var(--navy); }
}
