:root {
  --forest: #a71955;
  --forest-2: #d84b7e;
  --forest-3: #ffe1ec;
  --gold: #f5c842;
  --gold-light: #fff0a8;
  --paper: #fff9fb;
  --ink: #45152b;
  --muted: #765969;
  --line: #f0d8e1;
  --white: #fff;
  --red: #a23048;
  --shadow: 0 22px 50px rgba(167, 25, 85, .13);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Leelawadee UI", Tahoma, Arial, sans-serif; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 999; padding: 10px 16px; background: #fff; color: #000; }
.skip-link:focus { top: 12px; }

.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 12px clamp(20px, 5vw, 72px); color: #fff; background: linear-gradient(100deg, #9f164f, #d94b7d); box-shadow: 0 8px 22px rgba(122, 17, 61, .18); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 54px; height: 54px; object-fit: contain; padding: 3px; border-radius: 50%; background: #fff; box-shadow: 0 5px 14px rgba(82, 9, 36, .18); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.05rem; letter-spacing: .02em; }
.brand small { color: rgba(255,255,255,.7); font-size: .72rem; }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a { color: rgba(255,255,255,.84); text-decoration: none; font-size: .94rem; }
.topbar nav a:hover { color: #fff; }
.topbar nav a.member-button { padding: 8px 13px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; color: #fff; font-weight: 800; }

.outline-button, .primary-button, .danger-button, .text-button, .icon-button { border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700; text-decoration: none; transition: .2s ease; }
.outline-button { border: 1px solid currentColor; color: var(--forest); background: transparent; }
.topbar .outline-button { color: #fff; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: #16251f; box-shadow: 0 8px 18px rgba(201,155,61,.25); }
.primary-button:hover { transform: translateY(-1px); background: #d9ac50; }
.danger-button { background: #f3dddd; color: var(--red); }
.text-button { padding-inline: 0; background: transparent; color: var(--forest); }
.text-button span { margin-left: 8px; }
.icon-button { width: 42px; height: 42px; padding: 0; font-size: 1.6rem; background: rgba(255,255,255,.08); color: #fff; }
.full { width: 100%; }

.hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); align-items: center; gap: clamp(40px, 7vw, 110px); padding: 80px clamp(24px, 8vw, 130px) 100px; position: relative; overflow: hidden; background: radial-gradient(circle at 88% 20%, rgba(245,200,66,.28), transparent 26%), linear-gradient(125deg, #fff 0 61%, #ffe6ef 61%); }
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: 7%; top: 10%; border: 1px solid rgba(167,25,85,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(216,75,126,.045), 0 0 0 140px rgba(245,200,66,.04); }
.hero-copy { position: relative; z-index: 1; max-width: 800px; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--gold); font-size: .76rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { margin: 0; color: var(--forest); font-family: Georgia, "TH Sarabun New", serif; font-size: clamp(3.4rem, 7vw, 7rem); line-height: .95; font-weight: 700; letter-spacing: -.045em; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-copy > p { max-width: 690px; margin: 30px 0; color: #52605b; font-size: 1.12rem; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.profile-card { position: relative; z-index: 1; padding: 0 30px 30px; border: 5px solid #fff; border-radius: 190px 190px 26px 26px; text-align: center; background: linear-gradient(150deg, #b61f5e, #e75587); color: #fff; box-shadow: var(--shadow); overflow: hidden; }
.profile-photo-wrap { position: relative; height: 300px; margin: 0 -30px 26px; overflow: hidden; background: #ffe7ef; }
.profile-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.profile-photo-wrap::after { content: ""; position: absolute; inset: auto 0 0; height: 32%; background: linear-gradient(transparent, rgba(166,25,85,.72)); }
.profile-logo { position: absolute; z-index: 2; right: 18px; bottom: 16px; width: 64px; height: 64px; object-fit: contain; padding: 5px; border-radius: 50%; background: #fff; box-shadow: 0 8px 18px rgba(75,8,34,.24); }
.profile-card > span { color: var(--gold-light); font-size: .8rem; letter-spacing: .08em; }
.profile-card h2 { margin: 8px 0 5px; font-size: 1.5rem; }
.profile-card > p { margin: 0 0 28px; color: rgba(255,255,255,.68); font-size: .9rem; }
.profile-focus { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); }
.profile-focus small, .profile-focus strong { display: block; }
.profile-focus small { color: rgba(255,255,255,.55); }
.profile-focus strong { margin-top: 5px; color: var(--gold-light); font-size: .93rem; }
.profile-card.pa-profile { border-radius: 30px; }
.wide-profile-photo { height: auto; aspect-ratio: 1672 / 941; }
.wide-profile-photo .profile-photo { object-fit: cover; object-position: center; }
.profile-pa-link { display: inline-flex; margin: -10px 0 20px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 800; text-decoration: none; }
.profile-pa-link:hover { background: rgba(255,255,255,.1); }

.metric-strip { display: grid; grid-template-columns: 1.35fr repeat(5, 1fr); margin: -38px clamp(20px, 5vw, 72px) 0; position: relative; z-index: 3; border: 1px solid #f5dbe5; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.metric-strip article { min-height: 130px; padding: 26px 28px; border-right: 1px solid var(--line); }
.metric-strip article:last-child { border: 0; }
.metric-strip span, .metric-strip small { display: block; color: var(--muted); font-size: .82rem; }
.metric-strip strong { display: inline-block; margin-top: 8px; color: var(--forest); font-family: Georgia, serif; font-size: 2.15rem; line-height: 1; }
.metric-strip small { display: inline; margin-left: 5px; }
.mini-progress { height: 6px; margin-top: 17px; border-radius: 99px; background: #e8ece9; overflow: hidden; }
.mini-progress i { display: block; width: 0; height: 100%; background: var(--gold); transition: width .6s ease; }

.section { padding: 100px clamp(24px, 7vw, 110px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.section-heading h2 { margin: 0; color: var(--forest); font-family: Georgia, "TH Sarabun New", serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; }
.section-heading > p { max-width: 500px; margin: 0; color: var(--muted); }
.section-heading.compact { margin-bottom: 25px; }
.section-heading.compact h2 { font-size: 2rem; }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work-card { min-height: 315px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .25s ease; }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-number { color: var(--gold); font-family: Georgia, serif; font-size: 2rem; }
.work-card h3 { margin: 26px 0 12px; color: var(--forest); font-size: 1.15rem; line-height: 1.35; }
.work-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.work-meta { margin-top: auto; padding-top: 24px; }
.work-meta > div { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: .8rem; }
.progress { height: 7px; border-radius: 99px; background: #e9eeeb; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--forest-2); }
.tag { display: inline-flex; margin-top: 15px; padding: 4px 9px; border-radius: 999px; color: var(--forest); background: var(--forest-3); font-size: .72rem; font-weight: 700; }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-top: 30px; }
.timeline { border-left: 1px solid var(--line); margin-left: 8px; }
.timeline-item { position: relative; padding: 0 0 28px 30px; }
.timeline-item::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--paper); }
.timeline-item time { color: var(--gold); font-size: .77rem; font-weight: 800; }
.timeline-item h3 { margin: 4px 0; font-size: 1rem; }
.timeline-item p { margin: 0; color: var(--muted); font-size: .86rem; }
.evidence-list { display: grid; gap: 10px; }
.evidence-item { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; padding: 15px; border-radius: 14px; background: #fff; text-decoration: none; }
.evidence-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--forest-3); color: var(--forest); font-weight: 900; }
.evidence-item strong, .evidence-item small { display: block; }
.evidence-item small { color: var(--muted); }
.evidence-open { color: var(--gold); font-size: 1.2rem; }
.empty-state { padding: 32px; border: 1px dashed #cbd2ce; border-radius: 16px; text-align: center; color: var(--muted); }

.modules-section { padding-top: 110px; background: linear-gradient(180deg, #fff9fb, #fff); }
.section-heading.centered { display: block; max-width: 760px; margin-inline: auto; text-align: center; }
.section-heading.centered p { max-width: none; margin: 14px auto 0; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.service-card { position: relative; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; border: 1px solid #f1dce4; border-radius: 22px; text-decoration: none; background: #fff; box-shadow: 0 10px 24px rgba(142,24,72,.06); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(142,24,72,.14); }
.service-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -38px; top: -40px; border-radius: 50%; opacity: .55; }
.service-card.pink::after { background: #ffd0e0; }
.service-card.yellow::after { background: #ffec8a; }
.service-card i { position: absolute; right: 16px; top: 12px; color: rgba(126,23,64,.25); font-family: Georgia, serif; font-size: 1.35rem; font-style: normal; }
.service-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 24px; border-radius: 17px; color: #fff; background: linear-gradient(135deg, #aa1955, #e95e8e); font-weight: 900; font-size: 1.25rem; box-shadow: 0 9px 18px rgba(167,25,85,.2); }
.service-card.yellow .service-icon { color: #6a3a00; background: linear-gradient(135deg, #f5c842, #ffe684); box-shadow: 0 9px 18px rgba(216,165,10,.2); }
.service-card strong { color: var(--forest); font-size: 1.02rem; }
.service-card small { margin-top: 5px; color: var(--muted); line-height: 1.45; }

.plans-section { background: #fff; }
.plans-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; }
.subheading { margin: 0 0 16px; color: var(--forest); font-size: 1.15rem; }
.plan-list, .school-list { display: grid; gap: 13px; }
.plan-card, .school-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.plan-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; }
.plan-card h4, .school-card h4 { margin: 0 0 7px; color: var(--forest); }
.plan-card p, .school-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.plan-progress { width: 74px; height: 74px; display: grid; place-items: center; border: 7px solid var(--gold); border-radius: 50%; color: var(--forest); background: #fff; font-weight: 900; }
.plan-meta, .school-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.plan-meta span, .school-meta span { padding: 4px 9px; border-radius: 99px; color: var(--forest); background: var(--forest-3); font-size: .72rem; }

.calendar-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 50px; padding: 85px clamp(24px, 7vw, 110px); background: linear-gradient(125deg, #a61955, #d94b7d); color: #fff; }
.calendar-intro h2 { margin: 0; font-family: Georgia, "TH Sarabun New", serif; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.05; }
.calendar-intro p { color: rgba(255,255,255,.75); }
.calendar-intro .primary-button { margin-top: 12px; }
.calendar-board { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 16px; border-radius: 22px; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 22px 50px rgba(88,8,41,.22); }
.calendar-month { display: grid; place-items: center; min-height: 230px; padding: 20px; border-radius: 17px; text-align: center; color: #603400; background: linear-gradient(145deg, #f5c842, #ffe78b); font-weight: 900; }
.calendar-month strong, .calendar-month span { display: block; }
.calendar-month strong { font-family: Georgia, serif; font-size: 4.2rem; line-height: 1; }
.calendar-events { max-height: 310px; overflow: auto; padding: 4px; }
.calendar-event { display: grid; grid-template-columns: 58px 1fr; gap: 13px; padding: 13px; border-bottom: 1px solid var(--line); }
.calendar-date { display: grid; place-items: center; height: 54px; border-radius: 13px; color: #fff; background: var(--forest-2); font-weight: 900; }
.calendar-event h4, .calendar-event p { margin: 0; }
.calendar-event p { color: var(--muted); font-size: .8rem; }

.pa-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.pa-summary > div { padding: 18px 20px; border-left: 5px solid var(--gold); border-radius: 13px; background: #fff; box-shadow: 0 7px 20px rgba(128,20,62,.06); }
.pa-summary strong, .pa-summary span { display: block; }
.pa-summary strong { color: var(--forest); font-size: 1.7rem; }
.pa-summary span { color: var(--muted); font-size: .8rem; }

.development-section { background: linear-gradient(180deg, #fff, #fff5f8); }
.development-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.development-card { padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.development-type { display: inline-flex; padding: 5px 10px; border-radius: 99px; color: #6b3f00; background: var(--gold-light); font-size: .72rem; font-weight: 900; }
.development-card h3 { margin: 18px 0 8px; color: var(--forest); font-size: 1.05rem; }
.development-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.development-card footer { margin-top: 18px; padding: 0; background: transparent; color: var(--muted); font-size: .76rem; }

.report-sheet { padding: 30px; border-radius: 18px; background: #fff; }
.report-sheet h3 { color: var(--forest); }
.report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.report-kpis div { padding: 16px; border-radius: 13px; background: var(--paper); }
.report-kpis strong, .report-kpis span { display: block; }
.report-kpis strong { color: var(--forest); font-size: 1.55rem; }
.report-kpis span { color: var(--muted); font-size: .78rem; }

.innovation-section { padding: 90px clamp(24px, 7vw, 110px); background: var(--forest); color: #fff; }
.section-heading.inverse h2 { color: #fff; }
.section-heading.inverse > p { color: rgba(255,255,255,.62); }
.innovation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.innovation-card { padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(255,255,255,.055); }
.innovation-stage { display: inline-flex; padding: 5px 10px; border-radius: 99px; color: #142d27; background: var(--gold-light); font-size: .72rem; font-weight: 800; }
.innovation-card h3 { margin: 22px 0 10px; }
.innovation-card p { color: rgba(255,255,255,.65); font-size: .88rem; }
.innovation-card .progress { margin-top: 22px; background: rgba(255,255,255,.12); }
.innovation-card .progress i { background: var(--gold); }

footer { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 34px clamp(24px, 7vw, 110px); background: #731139; color: #fff; }
footer strong, footer span { display: block; }
footer span { color: rgba(255,255,255,.55); font-size: .8rem; }
footer a { color: var(--gold-light); }

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(11, 28, 23, .72); backdrop-filter: blur(7px); }
.modal-card { position: relative; width: min(900px, 100%); max-height: 92vh; overflow: auto; padding: 36px; border-radius: var(--radius); background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.small-card { width: min(460px, 100%); }
.modal-close { position: absolute; right: 18px; top: 15px; border: 0; background: transparent; color: var(--muted); font-size: 1.8rem; }
.modal-card h2 { margin: 0 0 5px; color: var(--forest); }
.muted { color: var(--muted); }
form label { display: grid; gap: 7px; color: #34413c; font-size: .86rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cfd7d2; border-radius: 11px; padding: 11px 12px; background: #fff; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(36,89,73,.1); }
textarea { min-height: 105px; resize: vertical; }
#loginForm, #mfaForm { display: grid; gap: 16px; margin-top: 24px; }
.form-message { min-height: 20px; margin: 14px 0 0; color: var(--red); font-size: .85rem; }

.workspace { position: fixed; inset: 0; z-index: 150; overflow: auto; background: #fff4f8; }
.workspace-header { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 20px 30px; color: #fff; background: var(--forest); }
.workspace-header h2, .workspace-header p, .workspace-header .eyebrow { margin: 0; }
.workspace-header p { color: rgba(255,255,255,.62); font-size: .8rem; }
.workspace-actions { display: flex; align-items: center; gap: 10px; }
.workspace-header .outline-button { color: #fff; }
.workspace-body { min-height: calc(100vh - 100px); display: grid; grid-template-columns: 230px 1fr; }
.workspace-nav { display: flex; flex-direction: column; gap: 7px; padding: 24px 18px; background: #fff; border-right: 1px solid var(--line); }
.workspace-nav button { border: 0; border-radius: 11px; padding: 12px 15px; text-align: left; background: transparent; color: #49534f; }
.workspace-nav button.active { background: var(--forest-3); color: var(--forest); font-weight: 800; }
.workspace-content { padding: 30px; overflow: hidden; }
.workspace-view { display: none; }
.workspace-view.active { display: block; }
.view-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.view-title h3, .view-title p { margin: 0; }
.view-title h3 { color: var(--forest); font-size: 1.55rem; }
.view-title p { color: var(--muted); }
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.admin-metrics article { padding: 20px; border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgba(23,63,53,.06); }
.admin-metrics span, .admin-metrics strong { display: block; }
.admin-metrics span { color: var(--muted); font-size: .82rem; }
.admin-metrics strong { margin-top: 7px; color: var(--forest); font-size: 1.8rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-top: 16px; }
.dashboard-grid article { padding: 24px; border-radius: 16px; background: #fff; }
.dashboard-grid h4 { margin-top: 0; }
.dashboard-grid ol { color: var(--muted); }
.category-row { margin: 15px 0; }
.category-row > div { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .84rem; }
.data-table { border-radius: 16px; background: #fff; overflow: auto; }
.data-table table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th, .data-table td { padding: 13px 15px; border-bottom: 1px solid #edf0ee; text-align: left; vertical-align: top; font-size: .84rem; }
.data-table th { color: var(--muted); background: #f8faf8; font-size: .75rem; text-transform: uppercase; }
.row-actions { display: flex; gap: 6px; }
.row-actions button { border: 0; border-radius: 8px; padding: 6px 9px; background: var(--forest-3); color: var(--forest); }
.row-actions button.delete { background: #f6e6e5; color: var(--red); }
.status-pill { display: inline-flex; padding: 4px 8px; border-radius: 99px; background: #eef2ef; font-size: .7rem; font-weight: 800; }
.status-pill.public { color: #1f654f; background: #dff2e8; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 25px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 300; max-width: 380px; padding: 13px 18px; border-radius: 12px; color: #fff; background: var(--forest); box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: none; }

.pa-agreement-section { background: linear-gradient(180deg, #fff 0%, #fff7fa 100%); }
.pa-heading > p { max-width: 620px; }
.pa-challenge-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); overflow: hidden; margin-bottom: 28px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, #8d1548 0%, #c9316d 72%, #de5787 100%); box-shadow: 0 24px 65px rgba(122, 17, 61, .2); }
.pa-challenge-copy { padding: clamp(30px, 4vw, 54px); }
.pa-year { display: inline-block; margin-bottom: 24px; padding: 8px 13px; border-radius: 999px; color: #4e3900; background: var(--gold); font-size: .78rem; font-weight: 900; }
.pa-challenge-copy > small { display: block; color: var(--gold-light); font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.pa-challenge-copy h3 { margin: 10px 0 16px; max-width: 850px; font-family: Georgia, "TH Sarabun New", serif; font-size: clamp(1.55rem, 2.5vw, 2.25rem); line-height: 1.38; }
.pa-challenge-copy p { max-width: 850px; margin: 0; color: rgba(255,255,255,.78); line-height: 1.8; }
.pa-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pa-actions .outline-button { color: #fff; }
.pa-targets { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 1px; background: rgba(255,255,255,.15); }
.pa-targets div { display: flex; flex-direction: column; justify-content: center; min-height: 145px; padding: 25px; background: rgba(74, 8, 36, .3); }
.pa-targets strong { color: var(--gold-light); font-family: Georgia, serif; font-size: 2.2rem; line-height: 1; }
.pa-targets span { margin-top: 9px; color: rgba(255,255,255,.78); font-size: .8rem; line-height: 1.55; }
.pa-domain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pa-domain-grid article { position: relative; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: 23px; background: #fff; box-shadow: 0 12px 35px rgba(88, 28, 61, .07); }
.pa-domain-grid article::after { content: ""; position: absolute; right: -35px; top: -35px; width: 105px; height: 105px; border-radius: 50%; background: rgba(245,200,66,.14); }
.pa-domain-grid i { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; color: #8e1549; background: #ffedf4; font-size: .78rem; font-style: normal; font-weight: 900; }
.pa-domain-grid article > span { display: block; margin-top: 20px; color: #a71955; font-size: .74rem; font-weight: 900; }
.pa-domain-grid h3 { margin: 7px 0 13px; color: var(--forest); font-size: 1.15rem; line-height: 1.48; }
.pa-domain-grid p { margin: 0 0 19px; color: var(--muted); font-size: .86rem; line-height: 1.75; }
.pa-domain-grid article > strong, .pa-domain-grid article > small { display: block; }
.pa-domain-grid article > strong { color: #715400; font-size: .78rem; }
.pa-domain-grid article > small { margin-top: 5px; color: #68726d; line-height: 1.65; }
.pa-process { display: grid; grid-template-columns: minmax(240px, .68fr) minmax(0, 1.32fr); gap: 40px; margin-top: 28px; padding: clamp(28px, 4vw, 48px); border-radius: 26px; background: #fff9df; }
.pa-process-title h3 { margin: 0 0 10px; color: var(--forest); font-family: Georgia, "TH Sarabun New", serif; font-size: 2rem; }
.pa-process-title p { margin: 0; color: var(--muted); }
.pa-process ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: pa-step; }
.pa-process li { counter-increment: pa-step; display: grid; grid-template-columns: 42px 1fr; column-gap: 13px; padding: 15px; border-radius: 15px; background: #fff; }
.pa-process li::before { content: counter(pa-step); grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: #b51f5d; font-weight: 900; }
.pa-process li b { color: var(--forest); font-size: .9rem; }
.pa-process li span { color: var(--muted); font-size: .8rem; line-height: 1.55; }
.pa-expected { margin-top: 22px; padding: 25px 30px; border-left: 6px solid var(--gold); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(88,28,61,.06); }
.pa-expected h3 { margin: 0 0 8px; color: var(--forest); }
.pa-expected p { margin: 0; color: var(--muted); line-height: 1.8; }

.news-section { background: linear-gradient(180deg, #fff8fb 0%, #fffdf4 100%); }
.news-heading > p { max-width: 610px; }
.news-audit { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)) auto; gap: 1px; margin-bottom: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--line); box-shadow: 0 15px 45px rgba(88, 28, 61, .07); }
.news-audit > div, .news-audit > a { min-height: 90px; padding: 18px 22px; background: #fff; }
.news-audit > div { display: flex; flex-direction: column; justify-content: center; }
.news-audit strong { color: var(--forest); font-size: 1.35rem; }
.news-audit span { color: var(--muted); font-size: .78rem; }
.news-audit > a { display: flex; align-items: center; justify-content: center; color: #8f164a; font-size: .86rem; font-weight: 800; text-decoration: none; }
.news-audit > a:hover { background: #fff2f7; }
.news-list { display: grid; gap: 24px; }
.news-card { display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); overflow: hidden; border: 1px solid rgba(166, 25, 85, .14); border-radius: 28px; background: #fff; box-shadow: 0 18px 55px rgba(88, 28, 61, .08); }
.news-card.featured { grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr); }
.news-gallery { min-height: 340px; padding: 12px; background: #f9eaf1; }
.news-gallery a { display: block; min-height: 100%; overflow: hidden; border-radius: 19px; background: #f1dbe5; }
.news-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.news-gallery a:hover img { transform: scale(1.025); }
.news-gallery.two-images { display: grid; grid-template-columns: 1.06fr .94fr; gap: 9px; }
.news-gallery.two-images a:first-child img { object-fit: contain; background: #f5e8ef; }
.news-gallery.portrait-card img { object-fit: contain; background: #f8f5ea; }
.news-content { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(25px, 3vw, 42px); }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.news-meta time, .news-meta span { padding: 7px 11px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.news-meta time { background: #ffe37b; color: #694d00; }
.news-meta span { background: #fde7f0; color: #9d1c53; }
.news-content h3 { margin: 0 0 14px; color: var(--forest); font-family: Georgia, "TH Sarabun New", serif; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.35; }
.news-content > p { margin: 0 0 18px; color: #5f6870; font-size: .94rem; line-height: 1.85; }
.news-facts { display: grid; gap: 8px; width: 100%; margin-bottom: 22px; }
.news-facts span { padding-left: 16px; color: #58646b; font-size: .82rem; line-height: 1.65; border-left: 3px solid #f2c432; }
.news-facts b { color: var(--forest); }
.source-link { margin-top: auto; color: #a61955; font-size: .84rem; font-weight: 800; text-decoration: none; }
.source-link:hover { text-decoration: underline; }
.news-source-note { margin: 22px 0 0; color: var(--muted); font-size: .77rem; text-align: center; }

@media (max-width: 1050px) {
  .pa-challenge-card { grid-template-columns: 1fr; }
  .pa-domain-grid { grid-template-columns: 1fr; }
  .pa-process { grid-template-columns: 1fr; }
  .news-audit { grid-template-columns: repeat(3, 1fr); }
  .news-audit > a { grid-column: 1 / -1; min-height: 64px; }
  .news-card, .news-card.featured { grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-strip { grid-template-columns: repeat(3, 1fr); }
  .metric-strip article:first-child { grid-column: span 2; }
  .innovation-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .development-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .topbar { align-items: flex-start; }
  .brand small, .topbar nav a { display: none; }
  .topbar nav { gap: 8px; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; background: linear-gradient(180deg, #fff 0 64%, #ffe4ed 64%); }
  .hero h1 { font-size: clamp(3.3rem, 16vw, 5.3rem); }
  .profile-card { max-width: 420px; margin: auto; }
  .metric-strip { grid-template-columns: 1fr 1fr; margin-top: -20px; }
  .metric-strip article:first-child { grid-column: span 2; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .split-section { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-layout, .calendar-section { grid-template-columns: 1fr; }
  .calendar-board { grid-template-columns: 130px 1fr; }
  .pa-summary { grid-template-columns: repeat(2, 1fr); }
  .workspace-body { grid-template-columns: 1fr; }
  .workspace-nav { position: sticky; top: 94px; z-index: 4; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-nav button { white-space: nowrap; }
  .workspace-header { align-items: flex-start; padding: 16px; }
  .workspace-header .outline-button, .workspace-header .danger-button { display: none; }
  .workspace-content { padding: 20px 14px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .news-card, .news-card.featured { grid-template-columns: 1fr; }
  .news-gallery { min-height: 380px; }
}
@media (max-width: 560px) {
  .brand-logo { width: 42px; height: 42px; }
  .topbar .outline-button { padding: 8px 11px; font-size: .78rem; }
  .hero { padding-inline: 20px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .metric-strip { display: grid; margin-inline: 12px; }
  .metric-strip article { min-height: 110px; padding: 20px; }
  .work-grid, .innovation-grid { grid-template-columns: 1fr; }
  .service-grid, .development-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 180px; }
  .calendar-board { grid-template-columns: 1fr; }
  .calendar-month { min-height: 120px; }
  .section { padding: 70px 20px; }
  .split-section { padding-top: 10px; }
  .innovation-section { padding-inline: 20px; }
  footer { align-items: flex-start; flex-direction: column; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .modal-card { padding: 28px 20px; }
  .pa-targets { grid-template-columns: 1fr; }
  .pa-targets div { min-height: 110px; }
  .pa-actions { align-items: stretch; flex-direction: column; }
  .pa-actions a { width: 100%; justify-content: center; text-align: center; }
  .pa-domain-grid article, .pa-process, .pa-expected { padding: 22px 20px; }
  .news-audit { grid-template-columns: 1fr; }
  .news-audit > a { grid-column: auto; }
  .news-gallery { min-height: 300px; }
  .news-gallery.two-images { grid-template-columns: 1fr 1fr; }
  .news-content { padding: 24px 20px 28px; }
}
@media print {
  body * { visibility: hidden; }
  .workspace, .workspace *, .report-sheet, .report-sheet * { visibility: visible; }
  .workspace { position: static; overflow: visible; background: #fff; }
  .workspace-header, .workspace-nav, .workspace-view:not([data-panel="report"]), .view-title button { display: none !important; }
  .workspace-body { display: block; }
  .workspace-content { padding: 0; }
  .workspace-view[data-panel="report"] { display: block !important; }
  .report-sheet { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
