.news-page { padding-block: clamp(24px, 4vw, 55px); min-height: 60vh; }
.news-page h1 { margin: 0 0 .55em; font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.06; letter-spacing: -.05em; }
.news-page a:not(.primary) { color: var(--brand-indigo); text-underline-offset: 3px; text-decoration: underline; }
.news-heading,.news-actions { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; }
.news-heading { justify-content: space-between; margin-bottom: 18px; }
.news-heading h1 { margin: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 18px; }
.news-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.news-page .news-filters a { min-height: 44px; display: inline-flex; align-items: center; padding: 7px 15px; border: 1px solid var(--line); border-radius: 6px; background: white; text-decoration: none; font-weight: 650; }
.news-page .news-filters a:hover { background: var(--brand-light); }
.news-page .news-filters a[aria-current] { background: var(--brand-indigo); border-color: var(--brand-indigo); color: white; }
.news-card,.news-panel { border: 1px solid var(--line); border-radius: 12px; background: white; }
.news-card { overflow: hidden; max-width: 480px; }
.news-card-media,.news-header-media { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(90deg, #252464b8, #29286e38), url("/brand/dutton-cover.jpg") center / cover, var(--brand-dark); }
.news-card-media { aspect-ratio: 1; }
.news-header-media { aspect-ratio: 16 / 9; margin: 22px 0 28px; border-radius: 12px; }
.news-photo,.news-image-preview img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.news-placeholder { width: clamp(85px, 18%, 132px); height: auto; }
.news-card > div,.news-panel { padding: clamp(16px, 2.8vw, 27px); }
.news-card h2,.news-panel h2 { margin: 0 0 8px; }
.news-card p { margin-block: 0 8px; }
.news-card p:last-child { margin-bottom: 0; }
.news-meta { color: var(--muted); font-size: .9rem; font-weight: 650; }
.news-article { max-width: 780px; margin-inline: auto; }
.news-summary { color: var(--muted); font-size: clamp(1.12rem, 2.3vw, 1.35rem); }
.news-content { line-height: 1.65; overflow-wrap: anywhere; }
.news-content h2,.news-content h3 { line-height: 1.2; margin: 1.15em 0 .4em; }
.news-content figure { margin: 25px 0; }
.news-content img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.news-contact { margin-top: 32px; }
.news-page nav.news-actions { margin-top: 20px; }
.news-panel + .news-panel { margin-top: 18px; }
.news-list { padding: 0; list-style: none; }
.news-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.news-list p { margin: 3px 0 0; }
.news-editor { max-width: 870px; display: grid; gap: 15px; }
.news-editor textarea { display: block; width: 100%; padding: 9px; margin-top: 4px; border: 1px solid #cddce5; border-radius: 6px; font: inherit; line-height: 1.5; resize: vertical; }
#news-body { font-family: ui-monospace, monospace; }
.news-toolbar,.news-image-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 8px; }
.news-image-tools { padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.news-image-tools label { flex: 1 1 180px; }
.news-image-tools small,.news-image-tools p { flex-basis: 100%; margin: 0; }
.news-image-tools p:empty { display: none; }
.news-image-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.news-image-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.news-image-field legend { font-weight: 700; }
.news-image-preview { position: relative; max-width: 240px; flex: 0 0 100%; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--brand-light); }
.news-image-preview-header_image { aspect-ratio: 16 / 9; }
.news-button { min-height: 39px; padding: 6px 11px; border: 1px solid #cddce5; color: var(--brand-indigo); background: white; border-radius: 6px; font-weight: 650; }
.news-button:hover { background: var(--brand-light); }
.news-staff-form { align-items: end; }
.news-staff-form label { flex: 0 1 310px; min-width: min(180px, 100%); }
.news-sign-in { display: inline-block; }
@media (max-width: 880px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 590px) { .news-grid,.news-image-fields { grid-template-columns: minmax(0, 1fr); } }
.news-rich-editor { min-height: 265px; margin-top: 8px; padding: 12px 15px; border: 1px solid #cddce5; border-radius: 6px; background: white; }
.news-rich-editor:focus { outline: 3px solid #4f68ec; outline-offset: 2px; }
.news-rich-editor p:first-child,.news-rich-editor h2:first-child { margin-top: 0; }
.news-rich-editor img { margin-block: 8px; }
.news-list li.news-manage-row { display: grid; grid-template-columns: 38px 60px minmax(0, 1fr) auto; }
.news-admin-thumbnail { position: relative; display: grid; place-items: center; width: 60px; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--brand-dark); }
.news-admin-thumbnail .news-placeholder { width: 75%; }
.news-manage-info { overflow-wrap: anywhere; }
.news-url-field { display: flex; gap: 8px; align-items: center; }
.news-url-field > span { color: var(--muted); }

.news-drag-handle { display: grid; place-items: center; width: 38px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 6px; color: var(--brand-indigo); background: white; cursor: grab; touch-action: none; }
.news-drag-handle:hover { background: var(--brand-light); }
.news-manage-row.is-dragging { background: var(--brand-light); }
.news-manage-row.is-dragging .news-drag-handle { cursor: grabbing; }
.news-publish-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px; background: transparent; border: 0; border-radius: 6px; color: var(--ink); font-size: .875rem; font-weight: 650; }
.news-switch-track { position: relative; width: 39px; height: 22px; border-radius: 22px; background: #ab2839; }
.news-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; transition: transform 170ms ease; }
.news-publish-switch[aria-checked="true"] .news-switch-track { background: #137148; }
.news-publish-switch[aria-checked="true"] .news-switch-track::after { transform: translateX(17px); }
.news-publish-switch[aria-busy="true"] { opacity: .6; }
.news-management-status:empty { display: none; }
@media (max-width: 650px) {
  .news-list li.news-manage-row { grid-template-columns: 38px 54px minmax(0, 1fr); }
  .news-admin-thumbnail { width: 54px; }
  .news-publication { grid-column: 3; }
}
@media (prefers-reduced-motion: reduce) { .news-switch-track::after { transition: none; } }

.news-story-controls { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.news-feature-switch .news-switch-track { background: #697286; }
.news-feature-switch[aria-checked="true"] .news-switch-track { background: var(--brand-indigo); }
.news-feature-switch:disabled { opacity: .47; cursor: default; }
@media (max-width: 650px) { .news-story-controls { grid-column: 3; } }

.admin-dashboard { max-width: 980px; margin-inline: auto; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-block: 16px 24px; border-bottom: 1px solid var(--line); }
.news-page .admin-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 10px; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 650; text-decoration: none; }
.news-page .admin-nav a:hover { color: var(--brand-indigo); }
.news-page .admin-nav a[aria-current="page"] { border-color: var(--brand-indigo); color: var(--brand-indigo); }
.enquiry-inbox .contact-panel { margin-block: 14px; }
.enquiry-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.enquiry-filter-actions,.enquiry-filters > p { grid-column: 1 / -1; margin: 0; }
.enquiry-filter-actions,.inbox-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.enquiry-list { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.enquiry-list ul { margin: 0; padding: 0; list-style: none; }
.enquiry-row-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr) 20px;
  align-items: start;
  gap: 8px 16px;
  padding: 10px 14px;
  overflow-wrap: anywhere;
}
.enquiry-list-head {
  background: var(--brand-light);
  border-radius: 9px 9px 0 0;
  color: var(--brand-dark);
  font-size: .875rem;
  font-weight: 700;
}
.enquiry-row { border-top: 1px solid var(--line); }
.enquiry-row summary { list-style: none; cursor: pointer; font-size: .9rem; }
.enquiry-row summary::-webkit-details-marker { display: none; }
.enquiry-row summary:hover, .enquiry-row[open] summary { background: #f6f7fc; }
.enquiry-row summary:focus-visible { outline-offset: -3px; }
.enquiry-row small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.enquiry-row .enquiry-preview { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.enquiry-row-toggle {
  width: 8px;
  height: 8px;
  margin: 5px auto 0;
  border: solid var(--brand-indigo);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.enquiry-row[open] .enquiry-row-toggle { transform: rotate(225deg); }
.enquiry-row-content { padding: 12px 14px; border-top: 1px solid var(--line); }
.enquiry-row-content .enquiry-details { margin: 0 0 12px; }
.enquiry-row-content h3 { margin: 0 0 4px; font-size: .9rem; }
.enquiry-row-content .enquiry-note { margin: 0; }
.inbox-actions { margin-top: 14px; }
@media (max-width: 720px) {
  .enquiry-list-head { display: none; }
  .enquiry-list li:first-child .enquiry-row { border-top: 0; }
  .enquiry-row-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 14px;
    grid-template-areas: "customer subject toggle" "context date toggle";
    column-gap: 10px;
  }
  .enquiry-row-customer { grid-area: customer; }
  .enquiry-row-subject { grid-area: subject; }
  .enquiry-row-context { grid-area: context; }
  .enquiry-row-date { grid-area: date; }
  .enquiry-row-toggle { grid-area: toggle; }
}
.enquiry-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(175px, 100%), 1fr)); gap: 10px; }
.enquiry-details dt, .enquiry-row-date { color: var(--muted); }
.enquiry-details dd { margin: 0; overflow-wrap: anywhere; }
.enquiry-note { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 720px) { .enquiry-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.admin-stock-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  margin: 14px 0;
}
.admin-stock-facts div { padding: 10px; border-radius: 6px; background: var(--brand-light); }
.admin-stock-facts dt { color: var(--muted); font-size: .875rem; }
.admin-stock-facts dd { margin: 2px 0 0; font-weight: 700; }
.admin-stock-table { overflow-x: auto; margin-top: 12px; }
.admin-stock-table table { border-collapse: collapse; width: 100%; min-width: 590px; font-size: .9rem; }
.admin-stock-table th, .admin-stock-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-stock-table thead th { background: var(--brand-light); }
.admin-stock-table tbody tr:last-child > * { border-bottom: 0; }
.finance-settings-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(190px,100%),1fr)); gap: 12px; }
.finance-publish-setting { display: flex; gap: 9px; align-items: center; }
.finance-publish-setting input { min-height: auto; width: auto; margin: 0; }
.finance-stock-row { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.finance-stock-row > div { flex: 1 1 220px; align-self: center; }
.finance-stock-row input { max-width: 175px; }
.finance-price-override summary { cursor: pointer; color: var(--brand-indigo); font-weight: 650; }
.finance-price-override label { margin-top: 8px; }
.finance-price-override button { margin: 6px 6px 0 0; }
