:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.45;
}

body {
  margin: 0;
  padding: 0;
  color: #111;
  background: #fff;
}

header {
  padding: 28px 20px 12px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

main {
  padding: 0 20px 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

h1 {
  margin: 0 0 8px 0;
  font-size: 34px;
}

p.lead {
  margin: 0 0 18px 0;
  color: #333;
  max-width: 900px;
}

.panel {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 820px) {
  .controls { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-size: 14px;
  color: #222;
  margin-bottom: 6px;
}

input[type="text"], select {
  width: 100%;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
  font-size: 15px;
}

fieldset {
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 10px 10px 8px 10px;
}

legend {
  font-size: 14px;
  padding: 0 6px;
  color: #333;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d9d9d9;
  font-size: 13px;
  user-select: none;
}

.chip input {
  width: 14px;
  height: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
}

thead th {
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e6e6e6;
  padding: 10px 8px;
}

tbody td {
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 8px;
  vertical-align: top;
}

td.small {
  max-width: 360px;
}

a {
  color: #0b57d0;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 6px 0;
}

.badge {
  display: inline-block;
  border: 1px solid #d9d9d9;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  background: #fafafa;
}

hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 16px 0;
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

img.preview {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
}

.work-sections h3 {
  margin: 18px 0 8px 0;
  font-size: 18px;
}

.work-sections p {
  margin: 0 0 10px 0;
  color: #222;
}

.work-sections ul, .work-sections ol {
  margin: 0 0 12px 20px;
  padding: 0;
}

.work-sections li {
  margin: 4px 0;
}

.filelist a {
  display: block;
  padding: 6px 0;
}



:root {
  --wur-green: #007a4d;
  --wur-teal: #00a6d6;
  --wur-ink: #0b1f29;
  --wur-soft: #f4faf8;
}

body {
  background: linear-gradient(180deg, #f7fbfc 0px, #ffffff 220px);
}

header {
  border-bottom: 3px solid var(--wur-green);
  margin-bottom: 8px;
}

.brandrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.wur-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brandmeta {
  min-width: 0;
}

.brand-org {
  font-size: 14px;
  font-weight: 700;
  color: var(--wur-green);
  letter-spacing: 0.2px;
}

.brand-unit {
  font-size: 13px;
  color: #30515e;
}

h1 {
  color: var(--wur-ink);
}

a {
  color: #006c96;
}

a:hover {
  color: #004e6d;
}

.panel, .card {
  border-color: #dce9e3;
  box-shadow: 0 6px 22px rgba(9, 47, 39, 0.06);
}

.card h2 {
  color: var(--wur-green);
}

thead th {
  background: linear-gradient(180deg, #eaf6f2 0%, #e3f1ee 100%);
  color: #12303a;
}

.chips label {
  background: #f1faf7;
  border: 1px solid #cce7dc;
  border-radius: 999px;
  padding: 6px 10px;
}

.badge {
  background: #e8f6f1;
  border: 1px solid #cce7dc;
  color: #13463a;
}

button, .btn {
  background: var(--wur-green);
  color: white;
  border: 1px solid var(--wur-green);
  border-radius: 10px;
  padding: 8px 12px;
}

input[type="text"]:focus, select:focus {
  outline: 2px solid rgba(0, 166, 214, 0.25);
  border-color: var(--wur-teal);
}

/* Warm WUR-inspired yellow background accents */
:root {
  --wur-yellow: #f3df6c;
  --wur-yellow-soft: #fff7cf;
  --wur-yellow-tint: #fff2a8;
}

body {
  background:
    radial-gradient(1200px 340px at 15% -5%, rgba(243,223,108,0.42), rgba(243,223,108,0) 60%),
    radial-gradient(1000px 300px at 100% 0%, rgba(243,223,108,0.22), rgba(243,223,108,0) 62%),
    linear-gradient(180deg, #fffbea 0px, #ffffff 260px);
}

header {
  background: linear-gradient(180deg, rgba(255,247,207,0.88), rgba(255,247,207,0.2));
  border-radius: 0 0 18px 18px;
  padding-top: 22px;
}

.brandrow {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(243,223,108,0.35);
  border-radius: 14px;
  padding: 10px 12px;
  backdrop-filter: blur(2px);
}

.panel {
  background: linear-gradient(180deg, #fffef7 0%, #ffffff 100%);
  border-color: #e6e0b8;
}

fieldset {
  background: rgba(255,249,220,0.45);
  border-color: #e3dcae;
}

.chip {
  background: #fffdf1;
  border-color: #e5ddb0;
}

#clearBtn {
  background: var(--wur-yellow-soft) !important;
  border-color: #d8cf96 !important;
}

#clearBtn:hover {
  background: #ffefb0 !important;
}

table {
  background: rgba(255,255,255,0.94);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(33, 45, 31, 0.05);
}

tbody tr:nth-child(even) {
  background: rgba(255, 249, 213, 0.18);
}

.card {
  background: linear-gradient(180deg, #fffef8, #ffffff);
}


/* v21 palette update - full warm background */
:root {
  --page-bg: #FBF6E5;
  --surface: #FFFDF6;
  --surface-2: #FFF9EE;
  --border-soft: #E4DCC4;
  --border-strong: #D7CCA9;
  --text-strong: #16322B;
  --text-muted: #4D5E58;
  --accent-green: #007A4D;
  --accent-teal: #0E8FAE;
  --accent-gold: #D1B865;
}

html, body {
  background: var(--page-bg) !important;
}

body {
  color: var(--text-strong);
}

header {
  background: transparent !important;
  border-bottom: 3px solid var(--accent-green);
}

main {
  background: transparent;
}

.brandrow {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 20px rgba(48, 59, 46, 0.05);
}

.brand-org { color: var(--accent-green); }
.brand-unit { color: var(--text-muted); }

h1, h2, h3 { color: var(--text-strong); }
p.lead { color: var(--text-muted); }

a { color: var(--accent-teal); }
a:hover { color: #076E88; }

.panel, .card {
  background: var(--surface);
  border-color: var(--border-soft);
  box-shadow: 0 8px 24px rgba(34, 46, 40, 0.06);
}

fieldset {
  background: var(--surface-2);
  border-color: var(--border-soft);
}

input[type="text"], select {
  background: #FFFDF8;
  border-color: #D9CFB1;
  color: var(--text-strong);
}

input[type="text"]:focus, select:focus {
  outline: 2px solid rgba(14,143,174,0.2);
  border-color: var(--accent-teal);
}

.chip {
  background: #FFFBF1;
  border-color: var(--border-soft);
}

.chips label {
  background: #FFF8E8;
  border-color: var(--border-soft);
}

.badge {
  background: #F6F0DD;
  border-color: #D9CFB1;
  color: #335046;
}

table {
  background: #FFFDF8;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
}

thead th {
  background: #EFE5C8;
  border-bottom-color: #D8CCA8;
  color: #233C34;
}

tbody td {
  border-bottom-color: #EEE5CF;
}

tbody tr:nth-child(even) {
  background: rgba(239, 229, 200, 0.35);
}

button, .btn {
  background: var(--accent-green);
  border-color: var(--accent-green);
}

#clearBtn {
  background: #F2E7C6 !important;
  color: #28413A !important;
  border-color: #D8CCA8 !important;
}

#clearBtn:hover {
  background: #EBDDAB !important;
}

img.preview {
  background: #fff;
  border-color: var(--border-soft);
}

hr { border-top-color: #E8DDC1; }


/* v22 stronger table + WUR accents */
:root {
  --text-strong: #004D00;
  --text-muted: #2e6a2e;
  --accent-green: #007A33;
  --accent-green-dark: #005F27;
  --accent-teal: #0099B8;
  --accent-teal-dark: #007F99;
}

html, body {
  background: #FBF6E5 !important;
}

body, p, li, td, th, label, legend, h1, h2, h3, h4, h5, h6, .work-sections p, .brand-unit, .meta, .badge {
  color: var(--text-strong);
}

p.lead {
  color: #1f5d1f;
}

.brand-org { color: var(--accent-green); }

a {
  color: var(--accent-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-teal-dark);
}

.panel, .card {
  background: #FFFDF7;
  border-color: #D9CFB4;
}

fieldset {
  background: #FFF9EC;
  border-color: #D9CFB4;
}

input[type="text"], select {
  background: #FFFDF7;
  border-color: #CDBF98;
  color: var(--text-strong);
}

input[type="text"]::placeholder {
  color: #4b7a4b;
}

input[type="text"]:focus, select:focus {
  outline: 2px solid rgba(0,153,184,0.25);
  border-color: var(--accent-teal);
}

.chip, .chips label {
  color: var(--text-strong);
}

.badge {
  background: #F2E9CF;
  border-color: #CDBF98;
  color: var(--text-strong);
}

table {
  background: #FFFDF7;
  border: 1px solid #CDBF98;
  box-shadow: 0 8px 22px rgba(60, 72, 40, 0.08);
}

thead th {
  background: #D8CCA8;
  color: #004D00;
  border-bottom: 2px solid #B9AA7C;
}

tbody td {
  color: #004D00;
  border-bottom-color: #DDD2B2;
}

tbody tr:nth-child(odd) {
  background: #FFFAF0;
}

tbody tr:nth-child(even) {
  background: #F4EBCD;
}

tbody tr:hover {
  background: #ECE0BB;
}

button, .btn {
  background: var(--accent-green);
  border: 1px solid var(--accent-green);
  color: #ffffff;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

button:hover, .btn:hover {
  background: var(--accent-green-dark);
  border-color: var(--accent-green-dark);
  text-decoration: none;
}

button:focus-visible, .btn:focus-visible {
  outline: 2px solid rgba(0,153,184,0.35);
  outline-offset: 2px;
}

#clearBtn {
  background: #EAF5F0 !important;
  color: #005F27 !important;
  border-color: #9ED1BA !important;
}

#clearBtn:hover {
  background: #DDF0E8 !important;
}

.filelist a {
  color: var(--accent-teal);
}


/* Table layout tuning for better readability on the listing page */
table {
  table-layout: fixed;
}

thead th:nth-child(1),
tbody td:nth-child(1) {
  width: 3%;
}

thead th:nth-child(2),
tbody td:nth-child(2) {
  width: 25%;
}

thead th:nth-child(3),
tbody td:nth-child(3) {
  width: 33%;
}

thead th:nth-child(4),
tbody td:nth-child(4) {
  width: 11%;
}

thead th:nth-child(5),
tbody td:nth-child(5) {
  width: 11%;
}

thead th:nth-child(6),
tbody td:nth-child(6) {
  width: 5%;
}

tbody td:nth-child(2),
tbody td:nth-child(3),
tbody td:nth-child(4),
tbody td:nth-child(5) {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Let short description use the table column width instead of an old hard cap */
td.small {
  max-width: none;
}

@media (max-width: 980px) {
  thead th:nth-child(2), tbody td:nth-child(2) { width: 20%; }
  thead th:nth-child(3), tbody td:nth-child(3) { width: 36%; }
  thead th:nth-child(4), tbody td:nth-child(4) { width: 13%; }
  thead th:nth-child(5), tbody td:nth-child(5) { width: 13%; }
  thead th:nth-child(6), tbody td:nth-child(6) { width: 5%; }
}


/* v31 prevent wide work pages from long URLs or unbroken text */
main, .grid, .card, #workLong, .work-sections, .work-sections p, .work-sections li, .work-sections h3 {
  min-width: 0;
}
.card, #workLong, .work-sections p, .work-sections li, .work-sections a, #workLong a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.work-sections a, #workLong a {
  text-decoration-thickness: 1px;
}
img.preview {
  max-width: 100%;
  height: auto;
}
