:root {
  --navy: #061f42;
  --navy-2: #092b57;
  --teal: #008f8a;
  --teal-2: #13bbb2;
  --ink: #0d1d35;
  --muted: #5f6d7d;
  --line: #d9e4eb;
  --soft: #f3f8fa;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(6, 31, 66, 0.11);
  --radius: 6px;
  --container: 1140px;
}

/* CAJ Assistant logo blended into the navy chat surface. */
.caj-chatbot__toggle img,
.caj-chatbot__header img {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain !important;
}

.caj-chatbot > .caj-chatbot__toggle img {
  min-width: 38px !important;
  max-width: 38px !important;
  width: 38px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  height: 24px !important;
}

.caj-chatbot__header > img {
  min-width: 82px !important;
  max-width: 82px !important;
  width: 82px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  height: 40px !important;
}

/* Corporate metrics band and management webmail. */
.metrics {
  position: relative;
  overflow: hidden;
  padding: 34px 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(19,187,178,.13), transparent 25%),
    radial-gradient(circle at 88% 80%, rgba(12,95,156,.11), transparent 28%),
    linear-gradient(135deg,#edf8f8 0%,#f3f7fc 55%,#f8f4fb 100%);
}

.metrics::before {
  position: absolute;
  inset: 0;
  opacity: .32;
  background-image: linear-gradient(rgba(8,47,89,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(8,47,89,.08) 1px,transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(90deg,transparent,#000 18%,#000 82%,transparent);
}

.metrics__grid {
  position: relative;
  gap: 12px;
  border: 0;
  background: transparent;
}

.metrics article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 128px;
  border: 1px solid color-mix(in srgb,var(--metric-accent) 24%,#dfe8ef);
  border-radius: 14px;
  padding: 29px 16px 22px;
  background: linear-gradient(145deg,color-mix(in srgb,var(--metric-accent) 9%,white),#fff 74%);
  box-shadow: 0 14px 32px rgba(4,31,65,.07);
  transition: transform .26s ease,box-shadow .26s ease,border-color .26s ease;
}

.metrics article::before {
  position: absolute;
  top: 0;
  left: 18px;
  width: 48px;
  height: 4px;
  border-radius: 0 0 10px 10px;
  background: var(--metric-accent);
  content: "";
  transition: width .3s ease;
}

.metrics article::after {
  position: absolute;
  right: -30px;
  bottom: -44px;
  z-index: -1;
  width: 110px;
  height: 110px;
  border: 18px solid color-mix(in srgb,var(--metric-accent) 10%,transparent);
  border-radius: 50%;
  content: "";
  transition: transform .4s ease;
}

.metrics article:nth-child(1){--metric-accent:#008f8a}.metrics article:nth-child(2){--metric-accent:#0c5f9c}.metrics article:nth-child(3){--metric-accent:#7a2b91}.metrics article:nth-child(4){--metric-accent:#d87117}.metrics article:nth-child(5){--metric-accent:#0a6f74}
.metrics article:hover { transform: translateY(-7px); border-color: var(--metric-accent); box-shadow: 0 22px 44px rgba(4,31,65,.14); }
.metrics article:hover::before { width: calc(100% - 36px); }
.metrics article:hover::after { transform: scale(1.18) rotate(12deg); }
.metrics strong { color: var(--metric-accent); font-size: clamp(27px,2vw,36px); letter-spacing: -.04em; }
.metrics span { display:block;max-width:170px;margin:10px auto 0;color:#50647c;font-size:12px;font-weight:700;line-height:1.4; }

.management-mail { padding: 0; overflow: hidden; border-color: #cfdae7; background: #f3f7fb; }
.mail-notice,.mail-credential-once { display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px;border-radius:10px;padding:14px 16px; }
.mail-notice div,.mail-credential-once div { display:grid;gap:3px; }
.mail-notice--error { border:1px solid #f0b8b8;color:#762323;background:#fff1f1; }
.mail-notice span,.mail-credential-once span { font-size:12px; }
.mail-credential-once { border:1px solid rgba(19,187,178,.35);color:#fff;background:linear-gradient(135deg,#06254b,#08656d); }
.mail-credential-once code { border-radius:7px;padding:10px 12px;color:#06254b;background:#fff;font-weight:800; }
.mail-empty-onboarding { display:grid;justify-items:center;gap:10px;padding:70px 24px;text-align:center;background:linear-gradient(145deg,#f0faf9,#fff); }
.mail-empty-onboarding>span { display:grid;width:70px;height:70px;place-items:center;border-radius:22px;color:#fff;background:linear-gradient(135deg,#0b2c58,#00a59d);box-shadow:0 18px 32px rgba(5,57,92,.2); }
.mail-empty-onboarding svg { width:34px; }
.mail-empty-onboarding h2,.mail-empty-onboarding p { margin:0; }.mail-empty-onboarding p { max-width:650px;color:var(--muted);line-height:1.65; }

.webmail-app { display:grid;grid-template-columns:210px minmax(0,1fr);min-height:690px;background:#fff; }
.webmail-sidebar { display:flex;flex-direction:column;gap:18px;padding:22px 14px;color:#dceaf5;background:linear-gradient(175deg,#061d3d,#082c59 65%,#07505d); }
.webmail-compose { display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border-radius:9px;color:#052448;background:linear-gradient(135deg,#65e1d8,#fff);font-weight:850;box-shadow:0 12px 28px rgba(0,0,0,.16); }
.webmail-sidebar svg,.webmail-toolbar svg,.mail-list-heading svg,.mail-reader svg,.mail-attachment-control svg,.mail-attachments svg { width:19px;height:19px;flex:0 0 auto; }
.webmail-sidebar nav { display:grid;gap:5px; }
.webmail-sidebar nav a { display:flex;align-items:center;gap:10px;border-radius:8px;padding:11px 12px;color:rgba(255,255,255,.78);font-size:13px;font-weight:700; }
.webmail-sidebar nav a:hover,.webmail-sidebar nav a.is-active { color:#fff;background:rgba(255,255,255,.12); }
.webmail-sidebar nav b { display:grid;min-width:22px;height:22px;place-items:center;margin-left:auto;border-radius:999px;color:#06254b;background:#5ee0d6;font-size:10px; }
.webmail-storage-note { display:grid;gap:5px;margin-top:auto;border-top:1px solid rgba(255,255,255,.13);padding:17px 8px 0; }
.webmail-storage-note strong { color:#62e2d9;font-size:11px;text-transform:uppercase; }.webmail-storage-note span { color:rgba(255,255,255,.62);font-size:10px;line-height:1.5; }
.webmail-main { min-width:0;background:#fff; }
.webmail-toolbar { display:flex;align-items:end;justify-content:space-between;gap:16px;min-height:74px;border-bottom:1px solid #dce5ed;padding:14px 20px;background:#f8fbfd; }
.webmail-account-switcher label { display:grid;gap:4px; }.webmail-account-switcher span { color:#6e7e91;font-size:9px;font-weight:800;text-transform:uppercase; }
.webmail-account-switcher select { min-width:240px;border:0;padding:0;color:var(--navy);background:transparent;font-weight:800; }
.webmail-search { display:flex;align-items:center;gap:8px;width:min(340px,45%);border:1px solid #cfdbe6;border-radius:9px;padding:0 11px;background:#fff; }
.webmail-search svg { color:#789; }.webmail-search input { width:100%;border:0;padding:10px 0;outline:0;background:transparent; }
.mail-list-heading { display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4ebf1;padding:18px 22px; }
.mail-list-heading>div { display:flex;align-items:center;gap:12px; }.mail-list-heading>div>span { display:grid;width:42px;height:42px;place-items:center;border-radius:12px;color:#087c79;background:#e2f6f4; }
.mail-list-heading h2,.mail-list-heading p { margin:0; }.mail-list-heading h2 { font-size:20px; }.mail-list-heading p { color:#718195;font-size:11px; }.mail-list-heading>a { color:var(--teal);font-size:11px;font-weight:800; }
.mail-message-list { display:grid; }
.mail-message-row { display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;align-items:center;border-bottom:1px solid #edf1f5;padding:13px 20px;color:#42536a;transition:background .18s ease,transform .18s ease; }
.mail-message-row:hover { z-index:1;transform:translateX(3px);background:#f0faf9; }.mail-message-row.is-unread { background:#f2f8fd;box-shadow:inset 4px 0 #00a59d; }
.mail-message-row__avatar { display:grid;width:36px;height:36px;place-items:center;border-radius:10px;color:#075f6d;background:linear-gradient(145deg,#d9f5f2,#e9f0fa);font-size:12px;font-weight:900; }
.mail-message-row__content { display:grid;min-width:0;gap:3px; }.mail-message-row__content strong,.mail-message-row__content b { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }.mail-message-row__content strong { color:#53677e;font-size:11px;font-weight:600; }.mail-message-row__content b { color:#132a49;font-size:13px; }.mail-message-row.is-unread .mail-message-row__content b { font-weight:900; }
.mail-message-row__meta { display:grid;justify-items:end;gap:3px;color:#7f8d9d;font-size:10px; }.mail-message-row__meta small { font-size:9px; }
.mail-list-empty { display:grid;justify-items:center;gap:8px;padding:100px 20px;color:#7b8b9d; }.mail-list-empty svg { width:40px;height:40px;color:#16a49f; }.mail-list-empty strong { color:#233c5c; }
.mail-pagination { display:flex;align-items:center;justify-content:center;gap:16px;padding:18px;font-size:11px; }.mail-pagination a { color:var(--teal);font-weight:800; }

.mail-reader { padding:24px; }.mail-reader>header { display:flex;align-items:center;justify-content:space-between;gap:14px; }.mail-reader>header>a { color:var(--teal);font-size:11px;font-weight:800; }
.mail-reader__actions { display:flex;gap:8px; }.mail-reader__actions a { display:flex;align-items:center;gap:6px;border:1px solid #d4dfe8;border-radius:8px;padding:8px 10px;color:#183454;font-size:10px;font-weight:800; }
.mail-reader h2 { margin:28px 0 14px;color:#0a2448;font-size:clamp(22px,3vw,34px);line-height:1.2; }
.mail-reader__meta { display:grid;gap:3px;border-bottom:1px solid #dce5ed;padding-bottom:18px; }.mail-reader__meta strong { color:#193a5e; }.mail-reader__meta span,.mail-reader__meta time { color:#718195;font-size:11px; }
.mail-reader__body { min-height:250px;padding:28px 3px;color:#293c54;font-size:14px;line-height:1.72;overflow-wrap:anywhere; }.mail-reader__body table { display:block;max-width:100%;overflow-x:auto;border-collapse:collapse; }.mail-reader__body td,.mail-reader__body th { border:1px solid #dce5ed;padding:7px; }
.mail-attachments { display:flex;flex-wrap:wrap;gap:8px;padding:14px 0 0; }.mail-attachments a { display:flex;align-items:center;gap:7px;border:1px solid #d8e2eb;border-radius:8px;padding:8px 10px;color:#173a5d;background:#f8fbfd;font-size:11px; }.mail-attachments small { color:#7a8b9b; }
.mail-reader>footer { display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid #dce5ed;padding-top:16px; }.mail-reader>footer button { border:1px solid #cbd8e3;border-radius:7px;padding:8px 11px;color:#173a5d;background:#fff;font-size:10px;font-weight:800;cursor:pointer; }.mail-reader>footer button.is-danger { color:#9b2525;border-color:#e9caca; }

.mail-composer { display:grid;gap:0;margin:20px;border:1px solid #cddae5;border-radius:12px;background:#fff;box-shadow:0 22px 55px rgba(4,31,65,.14);overflow:hidden; }
.mail-composer__head { display:flex;align-items:center;justify-content:space-between;padding:14px 18px;color:#fff;background:linear-gradient(120deg,#061f42,#08746f); }.mail-composer__head div { display:grid;gap:2px; }.mail-composer__head span { color:#75e4db;font-size:10px;font-weight:800;text-transform:uppercase; }.mail-composer__head a { color:#fff;font-size:24px; }
.mail-composer>label,.mail-copy-fields label { display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;border-bottom:1px solid #e4ebf1;padding:0 16px; }.mail-composer label>span,.mail-copy-fields summary { color:#6d7e90;font-size:10px;font-weight:800;text-transform:uppercase; }.mail-composer input { border:0;padding:13px 0;outline:0; }.mail-copy-fields { border-bottom:1px solid #e4ebf1;padding:8px 16px; }.mail-copy-fields summary { cursor:pointer; }.mail-copy-fields label { padding:0; }
.mail-composer>textarea { min-height:280px;border:0;padding:20px;resize:vertical;outline:0;font:14px/1.65 Inter,sans-serif; }
.mail-composer__footer { display:flex;align-items:center;gap:12px;border-top:1px solid #e0e8ef;padding:13px 16px;background:#f8fbfd; }.mail-composer__footer>small { color:#77889a;font-size:9px; }.mail-composer__footer>button,.mail-admin-card>button,.mail-forwarder-panel>form>button { margin-left:auto;border:0;border-radius:8px;padding:11px 18px;color:#fff;background:linear-gradient(135deg,#00a49d,#08736f);font-weight:850;cursor:pointer; }
.mail-attachment-control { display:flex!important;grid-template-columns:none!important;gap:7px!important;border:0!important;padding:0!important;color:#176461;cursor:pointer; }.mail-attachment-control input { display:none; }

.mail-admin-zone { border-top:8px solid #dce8ef;padding:24px;background:#f4f8fb; }.mail-api-state { border-radius:999px;padding:7px 11px;color:#8a5a00;background:#fff1ca;font-size:9px;font-weight:900;text-transform:uppercase; }.mail-api-state.is-connected { color:#00675f;background:#d9f6f1; }
.mail-admin-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px; }.mail-admin-card { display:grid;gap:12px;border:1px solid #d2dee8;border-radius:12px;padding:18px;background:#fff;box-shadow:0 10px 26px rgba(6,31,66,.05); }.mail-admin-card--setup { grid-template-columns:minmax(0,1fr) minmax(230px,.5fr) auto;align-items:end; }.mail-admin-card h3,.mail-admin-card p { margin:0; }.mail-admin-card p,.mail-admin-card small { color:#6d7e90;font-size:11px;line-height:1.5; }.mail-admin-card label { display:grid;gap:5px;color:#52667c;font-size:10px;font-weight:800; }.mail-admin-card input,.mail-admin-card select,.mail-forwarder-panel input,.mail-account-table input,.mail-account-table select { min-width:0;border:1px solid #cdd9e4;border-radius:7px;padding:9px;background:#fff; }.mail-admin-card>button { margin-left:0; }
.mail-admin-row { display:grid;grid-template-columns:.55fr 1fr;gap:10px; }.mail-address-field { display:flex;border:1px solid #cdd9e4;border-radius:7px;overflow:hidden; }.mail-address-field input { width:100%;border:0;border-radius:0; }.mail-address-field span { display:flex;align-items:center;padding:0 9px;color:#607286;background:#eef3f7;font-size:10px; }
.mail-account-table,.mail-forwarder-panel { display:grid;gap:0;margin-top:18px;border:1px solid #d2dee8;border-radius:12px;background:#fff;overflow:hidden; }.mail-account-table__head,.mail-forwarder-panel>div:first-child { display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;background:linear-gradient(100deg,#eff9f8,#f5f8fc); }.mail-account-table__head h3,.mail-forwarder-panel h3,.mail-forwarder-panel p { margin:0; }.mail-account-table article { display:grid;grid-template-columns:minmax(220px,1fr) minmax(210px,.7fr) minmax(270px,.9fr);gap:12px;align-items:center;border-top:1px solid #e4ebf1;padding:14px 18px; }.mail-account-table article>div { display:grid;gap:3px; }.mail-account-table article span,.mail-account-table article small { color:#708195;font-size:10px; }.mail-account-table article form { display:flex;gap:7px; }.mail-account-table button,.mail-forwarder-list button { border:0;border-radius:6px;padding:8px 10px;color:#fff;background:#0b6681;font-size:9px;font-weight:800;cursor:pointer; }
.mail-forwarder-panel>form { display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;padding:16px 18px; }.mail-forwarder-panel label { display:grid;gap:5px;color:#53677d;font-size:10px;font-weight:800; }.mail-forwarder-panel>form>button { margin:0; }.mail-forwarder-panel p { color:#65788d;font-size:11px;line-height:1.5; }.mail-forwarder-list article { display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e4ebf1;padding:11px 18px;color:#51667c;font-size:11px; }

@media (max-width:1000px){.webmail-app{grid-template-columns:170px minmax(0,1fr)}.mail-admin-card--setup{grid-template-columns:1fr}.mail-admin-grid{grid-template-columns:1fr}.mail-account-table article{grid-template-columns:1fr 1fr}.mail-account-table article>div{grid-column:1/-1}.mail-forwarder-panel>form{grid-template-columns:1fr 1fr}.mail-forwarder-panel>form>button{grid-column:1/-1}}
@media (max-width:720px){.metrics{padding:22px 0}.metrics__grid{grid-template-columns:repeat(2,1fr);gap:9px}.metrics article{min-height:112px;padding:24px 10px 16px}.metrics article:last-child{grid-column:1/-1}.metrics article:hover{transform:none}.webmail-app{grid-template-columns:1fr}.webmail-sidebar{display:block;padding:12px}.webmail-compose{margin-bottom:9px}.webmail-sidebar nav{grid-template-columns:repeat(4,1fr)}.webmail-sidebar nav a{display:grid;justify-items:center;gap:4px;padding:8px 3px;font-size:9px}.webmail-sidebar nav b{position:absolute;margin:-7px 0 0 25px}.webmail-storage-note{display:none}.webmail-toolbar{align-items:stretch;flex-direction:column}.webmail-account-switcher select,.webmail-search{width:100%;min-width:0}.mail-message-row{grid-template-columns:36px minmax(0,1fr);padding:12px}.mail-message-row__meta{display:none}.mail-reader{padding:16px}.mail-reader>header{align-items:flex-start;flex-direction:column}.mail-composer{margin:10px}.mail-composer__footer{align-items:flex-start;flex-wrap:wrap}.mail-composer__footer>button{width:100%;margin-left:0}.mail-admin-zone{padding:15px}.mail-account-table article{grid-template-columns:1fr}.mail-account-table article>div{grid-column:auto}.mail-account-table article form{flex-direction:column}.mail-forwarder-panel>form{grid-template-columns:1fr}.mail-forwarder-panel>form>button{grid-column:auto}.mail-forwarder-list article{align-items:flex-start;flex-direction:column}.mail-notice,.mail-credential-once{align-items:flex-start;flex-direction:column}.mail-credential-once code{width:100%;overflow-wrap:anywhere}}
@media (max-width:420px){.metrics__grid{grid-template-columns:1fr}.metrics article:last-child{grid-column:auto}.webmail-sidebar nav a span{font-size:8px}.mail-reader__actions{width:100%}.mail-reader__actions a{flex:1;justify-content:center}.mail-admin-row{grid-template-columns:1fr}.mail-address-field{flex-direction:column}.mail-address-field span{padding:7px 9px}}
@media (prefers-reduced-motion:reduce){.metrics article,.metrics article::before,.metrics article::after,.mail-message-row{transition:none!important;transform:none!important}}

/* News & Announcements CMS and public newsroom. */
.announcements article { overflow:hidden; }
.announcements .announcement-media { display:block; margin:-18px -18px 14px; }
.announcements .announcement-media img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }
.announcements article small { color:var(--teal-dark); font-size:9px; font-weight:850; letter-spacing:.05em; text-transform:uppercase; }
.news-manager-grid { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(250px,.55fr); gap:24px; align-items:start; }
.news-editor-form { border:1px solid var(--line); border-radius:14px; padding:20px; background:#fff; }
.news-editor-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.news-editor-fields label { display:grid; gap:7px; color:var(--navy); font-size:11px; font-weight:750; }
.news-editor-fields .span-2 { grid-column:1/-1; }
.news-editor-fields input,.news-editor-fields select,.news-editor-fields textarea { width:100%; border:1px solid #cbdbe3; border-radius:8px; padding:10px 11px; color:var(--navy); background:#fff; font:inherit; font-weight:500; }
.news-editor-fields textarea { resize:vertical; line-height:1.55; }
.news-editor-fields small { color:var(--muted); font-size:9px; font-weight:500; line-height:1.45; }
.news-editor-fields .check-row { display:flex; align-items:center; gap:9px; }
.news-editor-fields .check-row input { width:auto; }
.news-editor-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-top:18px; }
.news-editor-actions a { color:var(--teal-dark); font-size:10px; font-weight:800; }
.news-image-guide { position:sticky; top:92px; border:1px solid rgba(0,143,139,.28); border-radius:14px; padding:16px; background:linear-gradient(160deg,#f4fbfb,#eef5f8); }
.news-guide-frame { display:grid; width:100%; aspect-ratio:16/9; place-items:center; overflow:hidden; border:1px dashed #8fb8c2; border-radius:10px; color:var(--teal-dark); background:#fff; font-size:28px; font-weight:850; }
.news-guide-frame img { width:100%; height:100%; object-fit:cover; }
.news-image-guide h3 { margin:16px 0 5px; color:var(--navy); font-size:16px; }
.news-image-guide > strong { color:var(--teal-dark); font-size:11px; }
.news-image-guide p { color:var(--muted); font-size:10px; line-height:1.6; }
.news-image-guide dl { margin:14px 0 0; }
.news-image-guide dl div { display:flex; justify-content:space-between; gap:12px; border-top:1px solid #d5e5e9; padding:8px 0; font-size:9px; }
.news-image-guide dd { margin:0; color:var(--navy); font-weight:800; text-align:right; }
.news-admin-list { display:grid; gap:10px; margin-top:26px; border-top:1px solid var(--line); padding-top:20px; }
.news-admin-list__head { display:flex; justify-content:space-between; align-items:center; }
.news-admin-list__head h3 { margin:0; color:var(--navy); font-size:16px; }
.news-admin-list__head span { color:var(--muted); font-size:10px; }
.news-admin-list > article { display:grid; grid-template-columns:150px minmax(0,1fr) auto; gap:16px; align-items:center; border:1px solid var(--line); border-radius:12px; padding:12px; background:#fff; }
.news-admin-list > article > img,.news-admin-placeholder { display:grid; width:150px; aspect-ratio:16/9; place-items:center; border-radius:9px; object-fit:cover; background:var(--soft); color:var(--muted); font-size:9px; }
.news-admin-list article > div:nth-child(2) { display:grid; gap:4px; }
.news-admin-list article strong { color:var(--navy); font-size:12px; }
.news-admin-list article span,.news-admin-list article p { margin:0; color:var(--muted); font-size:9px; line-height:1.5; }
.news-admin-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.news-admin-actions form { margin:0; }
.news-admin-actions a,.news-admin-actions button { border:1px solid var(--line); border-radius:6px; padding:7px 9px; color:var(--navy); background:#fff; font:inherit; font-size:9px; font-weight:800; }
.news-admin-actions .is-danger { color:#b13545; }

.news-hero { position:relative; overflow:hidden; padding:76px 0 70px; color:#fff; background:linear-gradient(125deg,#061f42 0%,#082c57 58%,#075f72 100%); }
.news-hero::after { position:absolute; inset:0; background:radial-gradient(circle at 82% 30%,rgba(89,216,208,.2),transparent 28%); content:""; }
.news-hero .container { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:40px; align-items:end; }
.news-hero h1 { max-width:720px; margin:0 0 12px; color:#fff; font-size:clamp(36px,5vw,64px); line-height:1.02; }
.news-hero p { max-width:680px; margin:0; color:#c8d8e5; font-size:16px; line-height:1.65; }
.news-hero__links { display:flex; gap:10px; }
.news-hero__links a { border:1px solid rgba(255,255,255,.3); border-radius:8px; padding:11px 15px; color:#fff; font-size:11px; font-weight:800; }
.news-page { padding:54px 0 82px; background:#fff; }
.news-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:42px; align-items:start; }
.news-section-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; border-bottom:1px solid var(--line); padding-bottom:12px; }
.news-section-title h2 { margin:0; color:var(--navy); font-size:24px; }
.news-section-title a { color:var(--teal-dark); font-size:11px; font-weight:800; }
.news-feature { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr); overflow:hidden; border:1px solid var(--line); border-radius:16px; background:#f8fbfc; }
.news-feature > a { display:block; min-height:300px; }
.news-feature img { width:100%; height:100%; aspect-ratio:16/9; object-fit:cover; }
.news-feature__copy { display:flex; flex-direction:column; justify-content:center; padding:34px; }
.news-meta { display:flex; flex-wrap:wrap; gap:8px; color:var(--teal-dark); font-size:9px; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.news-feature h2,.news-card h2 { color:var(--navy); }
.news-feature h2 { margin:12px 0; font-size:30px; line-height:1.16; }
.news-feature p { margin:0 0 18px; color:var(--muted); font-size:13px; line-height:1.65; }
.news-read-link { color:var(--teal-dark); font-size:11px; font-weight:850; }
.news-list { display:grid; gap:0; margin-top:30px; border-top:1px solid var(--line); }
.news-card { display:grid; grid-template-columns:220px minmax(0,1fr); gap:22px; border-bottom:1px solid var(--line); padding:20px 0; }
.news-card__media { display:block; overflow:hidden; border-radius:10px; background:var(--soft); }
.news-card img { display:block; width:100%; height:100%; aspect-ratio:16/9; object-fit:cover; }
.news-card h2 { margin:8px 0; font-size:20px; line-height:1.24; }
.news-card p { margin:0 0 10px; color:var(--muted); font-size:11px; line-height:1.6; }
.news-sidebar { position:sticky; top:92px; display:grid; gap:20px; }
.news-filter { display:grid; gap:10px; border:1px solid var(--line); border-radius:12px; padding:16px; background:#f8fbfc; }
.news-filter h2 { margin:0 0 3px; color:var(--navy); font-size:15px; }
.news-filter input,.news-filter select { width:100%; border:1px solid #cbdbe3; border-radius:7px; padding:9px 10px; color:var(--navy); background:#fff; font:inherit; font-size:10px; }
.news-filter button { border:0; border-radius:7px; padding:10px; color:#fff; background:var(--teal); font:inherit; font-size:10px; font-weight:800; }
.news-archive-links { display:grid; gap:8px; }
.news-archive-links a { display:flex; justify-content:space-between; border-bottom:1px solid var(--line); padding:8px 0; color:var(--navy); font-size:10px; }
.news-empty { border:1px dashed #b9cdd6; border-radius:14px; padding:44px 24px; color:var(--muted); background:#f8fbfc; text-align:center; }
.news-pagination { display:flex; gap:7px; margin-top:28px; }
.news-pagination a,.news-pagination span { display:grid; min-width:34px; height:34px; place-items:center; border:1px solid var(--line); border-radius:7px; color:var(--navy); font-size:10px; }
.news-pagination .is-current { color:#fff; background:var(--teal); }
.news-detail { padding:54px 0 82px; }
.news-detail__header { max-width:880px; margin:0 auto 28px; text-align:center; }
.news-detail__header h1 { margin:14px 0; color:var(--navy); font-size:clamp(34px,5vw,58px); line-height:1.08; }
.news-detail__header p { margin:0 auto; color:var(--muted); font-size:16px; line-height:1.65; }
.news-detail__image { display:block; width:min(1120px,100%); aspect-ratio:16/9; margin:0 auto; border-radius:18px; object-fit:cover; box-shadow:0 22px 50px rgba(6,31,66,.14); }
.news-detail__body { max-width:780px; margin:36px auto 0; color:#233b53; font-family:Lora,Georgia,serif; font-size:17px; line-height:1.9; }
.news-detail__body p { margin:0 0 22px; }
.news-share { display:flex; flex-wrap:wrap; gap:8px; max-width:780px; margin:30px auto 0; border-top:1px solid var(--line); padding-top:20px; }
.news-share > span { align-self:center; margin-right:5px; color:var(--navy); font-size:11px; font-weight:850; }
.news-share a,.news-share button { display:grid; min-width:40px; height:38px; place-items:center; border:1px solid var(--line); border-radius:8px; padding:0 10px; color:var(--navy); background:#fff; font:inherit; font-size:10px; font-weight:850; }
.news-archive-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.news-archive-grid .news-card { display:block; overflow:hidden; border:1px solid var(--line); border-radius:12px; padding:0; }
.news-archive-grid .news-card__copy { padding:16px; }

@media (max-width:980px) {
  .news-manager-grid,.news-layout { grid-template-columns:1fr; }
  .news-image-guide,.news-sidebar { position:static; }
  .news-feature { grid-template-columns:1fr; }
  .news-feature > a { min-height:0; }
  .news-archive-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:640px) {
  .news-editor-fields { grid-template-columns:1fr; }
  .news-editor-fields .span-2 { grid-column:auto; }
  .news-admin-list > article { grid-template-columns:96px minmax(0,1fr); }
  .news-admin-list > article > img,.news-admin-placeholder { width:96px; }
  .news-admin-actions { grid-column:1/-1; justify-content:flex-start; }
  .news-hero { padding:52px 0 46px; }
  .news-hero .container { grid-template-columns:1fr; gap:22px; }
  .news-hero__links { flex-wrap:wrap; }
  .news-page,.news-detail { padding:36px 0 58px; }
  .news-card { grid-template-columns:116px minmax(0,1fr); gap:14px; }
  .news-card h2 { font-size:15px; }
  .news-card p { display:none; }
  .news-feature__copy { padding:22px; }
  .news-feature h2 { font-size:24px; }
  .news-archive-grid { grid-template-columns:1fr; }
  .news-detail__header { text-align:left; }
  .news-detail__image { border-radius:12px; }
  .news-detail__body { font-size:16px; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
}

.topbar__inner {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.topbar__inner a,
.topbar__link {
  opacity: 0.95;
}

.topbar__inner span {
  margin-left: auto;
}

.topbar__link {
  border: 0;
  color: var(--white);
  background: transparent;
  padding: 0;
  font-size: 12px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.navbar__inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 315px;
}

.brand img {
  width: 118px;
  height: 58px;
  object-fit: cover;
  object-position: left center;
  mix-blend-mode: multiply;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand small {
  display: block;
  max-width: 270px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
}

.navlinks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.navlinks a {
  position: relative;
  padding: 30px 0;
}

.navlinks a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  background: var(--teal);
  content: "";
  opacity: 0;
  transform: scaleX(0.5);
  transition: 0.2s ease;
}

.navlinks a:hover::after,
.navlinks a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #d7e5ea;
  border-radius: 999px;
  padding: 3px;
  background: #f7fbfc;
}

.language-switch button {
  min-height: 28px;
  min-width: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--navy);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.language-switch button:hover,
.language-switch button:focus-visible {
  color: var(--white);
  background: var(--teal);
}

.google-translate-element,
.goog-te-banner-frame,
.skiptranslate iframe {
  display: none !important;
}

body {
  top: 0 !important;
}

.search-button,
.menu-toggle {
  border: 0;
  background: transparent;
}

.search-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--navy);
}

.search-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--navy);
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(19, 187, 178, 0.18), transparent 34%),
    linear-gradient(120deg, #041a38 0%, #082c59 62%, #075064 100%);
  color: var(--white);
  padding: 52px 0 34px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 46px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__copy h1 {
  max-width: 610px;
  margin: 0 0 16px;
  font-size: clamp(31px, 3.2vw, 43px);
  line-height: 1.14;
  letter-spacing: 0;
}

.hero__copy p {
  max-width: 510px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 22px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  border: 1px solid var(--teal);
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), #007c78);
  box-shadow: 0 10px 20px rgba(0, 143, 138, 0.24);
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--white);
}

.button--ghost-dark {
  border: 1px solid var(--navy);
  color: var(--navy);
  background: var(--white);
}

.button--share {
  border: 1px solid rgba(255,255,255,.34);
  color: #fff;
  background: rgba(255,255,255,.08);
}

.button--share-dark {
  border: 1px solid rgba(89,216,208,.55);
  color: #bff8f3;
  background: rgba(89,216,208,.08);
}

.hero__media {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: 720px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: #eef4f6;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.hero-slider__viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 2;
  min-height: 0;
  border-radius: 12px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-slide__image {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 100%;
  border-radius: 0;
  background: #071b35;
}

.hero-slide__image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.hero-slide__image::after {
  display: none;
  content: none;
}

.hero-slide__content {
  display: none;
}

.hero-slide__content strong {
  color: var(--white);
  font-size: 26px;
  line-height: 1.15;
}

.hero-slide__content p {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.6;
}

.hero-slide__content a {
  align-self: flex-start;
  border-radius: 8px;
  padding: 10px 13px;
  color: var(--white);
  background: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-slider__controls {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  padding: 0;
  pointer-events: none;
}

.hero-slider__controls button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--white);
  background: rgba(4, 17, 35, 0.55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  pointer-events: auto;
}

.hero-slider__controls svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-slider__dots {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(4, 17, 35, 0.42);
  pointer-events: auto;
}

.hero-slider__dots button {
  width: 9px;
  height: 9px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.36);
}

.hero-slider__dots button.is-active {
  width: 26px;
  background: var(--teal);
}

.hero__feature-strip {
  position: static;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero__grid > .hero__feature-strip {
  grid-column: 1 / 3;
  width: 100%;
}

.hero__feature-strip article {
  display: grid;
  min-height: 94px;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.hero__feature-strip article:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  grid-row: span 2;
  border: 1px solid rgba(21, 198, 188, 0.42);
  border-radius: 999px;
  color: var(--teal-2);
  background: rgba(21, 198, 188, 0.1);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.hero__feature-strip strong,
.hero__feature-strip small {
  display: block;
}

.hero__feature-strip strong {
  margin-top: 0;
  font-size: 13px;
}

.hero__feature-strip small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.journal-facts {
  padding: 30px 0 18px;
  background: var(--white);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.fact-card,
.subscribe-card,
.current-issue,
.announcements,
.portal-form,
.reviewer-panel,
.policies article,
.archive-grid article,
.profile,
.role-card,
.application-flow {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.fact-card,
.subscribe-card {
  min-height: 126px;
  padding: 20px;
}

.fact-card__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal);
  background: #e7f5f4;
  font-size: 12px;
  font-weight: 800;
}

.fact-card h2,
.subscribe-card h2 {
  margin: 12px 0 3px;
  font-size: 16px;
}

.fact-card p,
.subscribe-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.fact-card a,
.announcements a,
.section-heading-row a {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.subscribe-card {
  color: var(--white);
  background: linear-gradient(145deg, var(--teal), #006d72);
}

.subscribe-card p {
  color: rgba(255, 255, 255, 0.84);
}

.subscribe-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 24px;
  align-items: center;
  max-width: none;
  min-height: 0;
  margin-top: 16px;
  padding: 20px 22px;
  border-color: #dce9ed;
  border-left: 4px solid var(--teal);
  color: var(--navy);
  background: #f8fbfc;
  box-shadow: 0 12px 30px rgba(10, 33, 66, 0.06);
}

.journal-updates-wrap {
  padding-top: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.subscribe-strip__copy {
  min-width: 0;
}

.subscribe-strip h2 {
  margin: 2px 0 3px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
}

.subscribe-strip p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.subscribe-strip__eyebrow {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.subscribe-strip .inline-form {
  justify-self: end;
  width: min(100%, 460px);
  border: 1px solid #d7e6eb;
  border-radius: 8px;
  padding: 5px;
  background: var(--white);
}

.subscribe-strip small {
  grid-column: 1 / -1;
  min-height: 14px;
  color: var(--muted);
}

.subscribe-strip small:empty {
  display: none;
}

.subscribe-strip .inline-form input {
  min-height: 42px;
  padding: 0 12px;
  color: var(--navy);
  background: transparent;
}

.subscribe-strip .inline-form button {
  min-height: 42px;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--teal);
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form input,
.inline-form button {
  min-width: 0;
  border: 0;
  border-radius: 4px;
  padding: 10px 11px;
  font-size: 12px;
}

.inline-form input {
  flex: 1;
}

.inline-form button {
  color: var(--white);
  background: var(--navy);
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: 52px 0;
}

.flash {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
}

.flash--success {
  color: #075d59;
  background: #e6f7f5;
}

.flash--error {
  color: #8a1f11;
  background: #fff1ef;
}

.section h2 {
  position: relative;
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.2;
}

.section h2::after {
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 12px;
  background: var(--teal);
  content: "";
}

.section-copy p,
.section-heading-row p {
  margin: 0 0 20px;
  color: var(--muted);
}

.overview__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 0.95fr;
  gap: 26px;
  align-items: start;
}

.scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scope-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--navy);
  background: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.current-issue {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 18px;
  padding: 18px;
}

.current-issue img {
  width: 122px;
  height: 172px;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  box-shadow: 0 14px 24px rgba(6, 31, 66, 0.2);
}

.current-issue h2 {
  margin-bottom: 14px;
}

.current-issue h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.current-issue p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.announcements {
  padding: 20px;
}

.announcements article {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.announcements article:first-of-type {
  border-top: 0;
}

.announcements strong,
.announcements span {
  display: block;
}

.announcements strong {
  font-size: 14px;
}

.announcements span {
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px;
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.metrics {
  background: var(--soft);
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}

.metrics article {
  padding: 22px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.metrics article:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-size: 13px;
}

.articles {
  background: var(--white);
}

.filter-tools {
  display: flex;
  gap: 10px;
}

.filter-tools input,
.filter-tools select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  font-size: 13px;
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-list article {
  display: grid;
  grid-template-columns: 142px 1fr 255px;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-list span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.article-list h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 17px;
}

.article-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.article-list div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.article-list a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.submission {
  background: linear-gradient(180deg, var(--soft), var(--white));
}

.submission__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 34px;
  align-items: start;
}

.workflow {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.workflow li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.workflow strong {
  color: var(--navy);
}

.workflow span {
  color: var(--muted);
}

.portal-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.portal-form h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
}

.portal-cta-card p {
  margin: 0;
  color: var(--muted);
}

.portal-cta-card .button {
  margin-top: 4px;
}

.portal-form label,
.modal label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.portal-form input,
.portal-form select,
.portal-form textarea,
.modal input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  font-size: 14px;
}

.register {
  background: var(--white);
}

.register__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 42px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 12px;
}

.steps span {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.steps .is-active {
  color: var(--teal);
  font-weight: 800;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.role-card {
  min-height: 150px;
  padding: 24px;
  text-align: left;
  color: var(--ink);
  transition: border 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.role-card:hover,
.role-card.is-selected {
  border-color: var(--teal);
  box-shadow: 0 14px 34px rgba(0, 143, 138, 0.13);
  transform: translateY(-1px);
}

.role-card strong,
.role-card span {
  display: block;
}

.role-card strong {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 17px;
}

.role-card span {
  color: var(--muted);
  font-size: 13px;
}

.application-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 26px;
  padding: 18px;
  background: #f6fbfb;
}

.register-form {
  margin-top: 22px;
}

.application-flow article {
  min-width: 0;
}

.application-flow strong,
.application-flow span {
  display: block;
}

.application-flow strong {
  color: var(--navy);
  font-size: 13px;
}

.application-flow span {
  color: var(--muted);
  font-size: 12px;
}

.reviewer-panel {
  padding: 24px;
  background: linear-gradient(180deg, var(--white), var(--soft));
}

.reviewer-panel h3 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 20px;
}

.reviewer-panel ul,
.check-list {
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.reviewer-panel li,
.check-list li {
  position: relative;
  padding-left: 22px;
}

.reviewer-panel li::before,
.check-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.reviewer-panel strong,
.reviewer-panel span {
  display: block;
}

.reviewer-panel strong {
  color: var(--navy);
  font-size: 13px;
}

.reviewer-panel span,
.check-list {
  color: var(--muted);
  font-size: 13px;
}

.editorial {
  background: var(--soft);
}

.tab-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-controls button,
.board-filter button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 13px;
  color: var(--navy);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.tab-controls .is-active,
.board-filter .is-active {
  border-color: var(--teal);
  color: var(--white);
  background: var(--teal);
}

.board-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
}

.board-filter {
  display: grid;
  align-content: start;
  gap: 8px;
}

.board-filter button {
  width: 100%;
  text-align: left;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.profile {
  padding: 18px;
}

.profile--wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr 1.1fr auto;
  align-items: center;
  gap: 18px;
}

.avatar {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--teal));
  font-weight: 800;
}

.profile span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.profile h3 {
  margin: 4px 0;
  color: var(--navy);
  font-size: 16px;
}

.profile p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.profile a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.policy-grid article {
  padding: 24px;
  box-shadow: 0 12px 28px rgba(5, 28, 57, 0.035);
}

.policy-grid article h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

.policy-grid article p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.archives {
  background: var(--soft);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.archive-grid article {
  overflow: hidden;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(5, 28, 57, 0.045);
}

.archive-cover {
  display: block;
  width: 100%;
  aspect-ratio: 0.707;
  margin: -4px 0 16px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  background: var(--white);
  box-shadow: 0 16px 30px rgba(6, 31, 66, 0.14);
}

.archive-grid strong,
.archive-grid span {
  display: block;
}

.archive-grid strong {
  color: var(--navy);
  font-size: 18px;
}

.archive-grid span {
  margin: 4px 0 10px;
  color: var(--teal);
  font-weight: 800;
}

.archive-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.archive-grid a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  color: var(--white);
  background: var(--navy);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 0.75fr)) minmax(230px, 1fr);
  gap: 34px;
  padding: 34px 0 30px;
}

.footer__grid h2,
.footer__grid h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
}

.footer__grid p,
.footer__grid a {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.55;
}

.social-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.social-row a,
.social-row button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.9);
  background: transparent;
}

.social-row > span {
  align-self: center;
  margin-right: 3px;
  color: rgba(255,255,255,.62);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.modal {
  width: min(560px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(6, 31, 66, 0.62);
}

.modal form[method="dialog"] {
  display: flex;
  justify-content: flex-end;
}

.modal form[method="dialog"] button {
  border: 0;
  color: var(--navy);
  background: transparent;
  font-size: 26px;
  line-height: 1;
}

.modal h2 {
  margin: 0 0 16px;
  color: var(--navy);
}

.search-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.search-results a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

[data-subscribe-status],
[data-submission-status] {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .topbar__inner {
    gap: 12px;
  }

  .navlinks {
    gap: 13px;
    font-size: 12px;
  }

  .brand {
    flex-basis: 300px;
    min-width: 0;
  }

  .brand img {
    width: 88px;
    height: 50px;
  }

  .brand small {
    max-width: 205px;
  }

  .hero__grid,
  .overview__grid,
  .submission__grid,
  .register__grid {
    grid-template-columns: 1fr;
  }

  .hero__media {
    min-height: 320px;
    padding: 0;
  }

  .hero__feature-strip {
    grid-column: 1 / -1;
    width: 100%;
  }

  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .subscribe-card {
    grid-column: 1 / -1;
  }

  .subscribe-strip {
    grid-template-columns: 1fr;
  }

  .subscribe-strip .inline-form {
    justify-self: stretch;
    width: 100%;
  }

  .footer__grid,
  .policy-grid,
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-list article {
    grid-template-columns: 1fr;
  }

  .article-list div {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .topbar__inner {
    min-height: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 8px 0;
  }

  .topbar__inner span {
    margin-left: 0;
  }

  .navbar__inner {
    min-height: 72px;
  }

  .brand {
    flex-basis: auto;
    min-width: 0;
  }

  .brand img {
    width: 82px;
    height: 42px;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .navlinks {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    padding: 8px 18px 18px;
  }

  .navlinks.is-open {
    display: flex;
  }

  .navlinks a {
    padding: 13px 0;
  }

  .navlinks a::after {
    bottom: 8px;
  }

  .hero__copy {
    padding: 0;
  }

  .hero__copy h1 {
    max-width: 100%;
    font-size: 28px;
    line-height: 1.2;
    overflow-wrap: normal;
  }

  .hero__media {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 0;
  }

  .hero-slider {
    width: 100%;
  }

  .hero-slider__viewport {
    min-height: 0;
  }

  .hero-slide {
    display: block;
  }

  .hero-slide__image {
    min-height: 100%;
  }

  .hero-slide__image img {
    max-height: none;
  }

  .hero-slide__content {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .hero-slide__content strong {
    font-size: 22px;
  }

  .hero__feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 40px 0;
  }

  .section-heading-row,
  .filter-tools,
  .footer__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .metrics__grid,
  .role-grid,
  .application-flow,
  .board-layout,
  .board-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .profile--wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .subscribe-strip {
    gap: 16px;
    padding: 18px;
  }

  .subscribe-strip .inline-form {
    flex-direction: column;
  }

  .subscribe-strip .inline-form button {
    width: 100%;
  }

  .fact-grid,
  .footer__grid,
  .policy-grid,
  .archive-grid,
  .current-issue {
    grid-template-columns: 1fr;
  }

  .inline-form {
    flex-direction: column;
  }

  .hero__feature-strip {
    position: static;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .hero__media {
    display: flex;
    align-items: center;
    min-height: auto;
  }

  .hero-slider {
    width: 100%;
    max-width: 100%;
  }

  .workflow li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

.auth-page,
.portal-page {
  background: #eef5f7;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(6, 31, 66, 0.88), rgba(0, 143, 138, 0.72)),
    url("../issue-2026.jpeg") center / cover;
}

.auth-card {
  width: min(460px, 100%);
  border-radius: 10px;
  padding: 34px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(6, 31, 66, 0.28);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--navy);
  font-weight: 800;
}

.auth-brand img {
  width: 76px;
  height: 42px;
  object-fit: cover;
  object-position: left center;
  mix-blend-mode: multiply;
}

.auth-card h1 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 32px;
  letter-spacing: 0;
}

.auth-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
}

.auth-links a {
  color: var(--teal);
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  background: var(--white);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
}

.portal-brand img {
  width: 70px;
  height: 38px;
  object-fit: cover;
  object-position: left center;
  mix-blend-mode: multiply;
}

.portal-topbar nav {
  display: flex;
  gap: 14px;
  font-size: 13px;
  font-weight: 800;
}

.portal-topbar nav a {
  color: var(--navy);
}

.portal-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
}

.portal-sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  display: grid;
  gap: 8px;
  min-height: calc(100vh - 64px);
  padding: 22px;
  background: var(--navy);
}

.portal-sidebar a {
  border-radius: 6px;
  padding: 12px 13px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
}

.portal-sidebar a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.user-card {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.user-card span,
.user-card small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.portal-main {
  min-width: 0;
  padding: 28px;
}

.portal-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 10px;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #0a3b73);
}

.portal-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0;
}

.portal-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.portal-hero--module {
  margin-bottom: 18px;
  background: linear-gradient(135deg, #082044, #008f8b);
}

.portal-panel[hidden],
.finance-grid[hidden] {
  display: none !important;
}

.system-alert {
  display: grid;
  gap: 3px;
  margin: 16px 0;
  border: 1px solid #f1d28a;
  border-radius: 8px;
  padding: 14px 16px;
  color: #5d4100;
  background: #fff7dd;
}

.portal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.portal-stats article,
.portal-panel,
.manuscript-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.portal-stats article {
  padding: 18px;
}

.portal-stats strong {
  display: block;
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
}

.portal-stats span {
  color: var(--muted);
  font-size: 13px;
}

.portal-panel {
  margin-top: 18px;
  padding: 22px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 24px;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
}

.portal-form--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  box-shadow: none;
}

.portal-form--grid .span-2 {
  grid-column: 1 / -1;
}

.workflow-board {
  display: grid;
  gap: 14px;
}

.manuscript-card {
  padding: 18px;
}

.manuscript-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tracking {
  display: block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tracking--muted {
  margin-top: 3px;
  color: var(--muted);
  letter-spacing: 0;
}

.manuscript-card h3 {
  margin: 5px 0;
  color: var(--navy);
  font-size: 20px;
}

.manuscript-card p {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  min-width: 132px;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--navy);
  background: #eaf3f6;
  font-size: 12px;
}

.status-under_review {
  color: #735300;
  background: #fff0bf;
}

.status-payment_pending,
.status-copyright_pending,
.status-revision_requested {
  color: #735300;
  background: #fff0bf;
}

.status-published,
.status-accepted,
.status-payment_received,
.status-copyright_agreed {
  color: #075d59;
  background: #dff5f1;
}

.status-declined,
.status-rejected {
  color: #8a1f11;
  background: #ffe5e0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.meta-row a {
  color: var(--teal);
  font-weight: 800;
}

.assignment-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.assignment-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #dbe8ee;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fcfd;
}

.assignment-list article.is-overdue {
  border-color: #f5b7a8;
  background: #fff5f2;
}

.assignment-list strong,
.assignment-list span {
  display: block;
}

.assignment-list strong {
  color: var(--navy);
}

.assignment-list span {
  color: var(--muted);
  font-size: 12px;
}

.assignment-list button {
  min-height: 34px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--teal);
  background: var(--white);
  font-weight: 900;
}

.editor-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.editor-actions form {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr auto;
  gap: 8px;
}

.editor-actions form:first-child {
  grid-template-columns: 1fr auto;
}

.editor-actions input,
.editor-actions select,
.editor-actions button,
.compact-table button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 10px;
  background: var(--white);
  font-size: 13px;
}

.editor-actions button,
.compact-table button {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
  font-weight: 800;
}

.review-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.review-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.review-form select,
.review-form textarea {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px;
}

.review-note {
  border-left: 3px solid var(--teal);
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--soft);
}

.review-note p {
  margin: 4px 0 0;
}

.manuscript-version-history,
.revision-upload-form {
  margin-top: 14px;
  border: 1px solid #cfe0e8;
  border-radius: 12px;
  background: #f7fbfc;
}

.manuscript-version-history summary {
  cursor: pointer;
  padding: 13px 15px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.manuscript-version-history > div {
  display: grid;
  gap: 8px;
  border-top: 1px solid #dbe8ed;
  padding: 12px;
}

.manuscript-version-history article {
  display: grid;
  gap: 4px;
  border-radius: 9px;
  padding: 11px 12px;
  background: #fff;
}

.manuscript-version-history span,
.manuscript-version-history p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.manuscript-version-history a {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
}

.revision-upload-form {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(180px,.55fr) auto;
  gap: 12px;
  align-items: end;
  border-color: rgba(0,143,139,.35);
  padding: 15px;
}

.revision-upload-form > div,
.revision-upload-form label {
  display: grid;
  gap: 5px;
}

.revision-upload-form span,
.revision-upload-form label {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.revision-upload-form textarea,
.revision-upload-form input[type="file"] {
  width: 100%;
  border: 1px solid #cddce4;
  border-radius: 8px;
  padding: 9px;
  color: var(--navy);
  background: #fff;
  font: inherit;
}

@media (max-width: 760px) {
  .revision-upload-form { grid-template-columns: 1fr; }
  .revision-upload-form .button { width: 100%; }
}

/* CAJ newsroom layout: stable media, editorial reading rhythm and rich editor. */
.overview__grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr) minmax(340px, .9fr);
}

.overview__stack {
  display: grid;
  gap: 34px;
}

.journal-about {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 38px;
}

.journal-about__copy p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.75;
}

.journal-about .scope-list {
  align-content: center;
}

.overview__stack .current-issue {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  min-width: 0;
  padding: 28px;
  background: linear-gradient(135deg, #f7fafc, #eef6f7);
}

.overview__stack .current-issue img {
  width: 180px;
  height: 254px;
  object-fit: contain;
  background: #fff;
}

.overview__stack .current-issue h2 {
  margin-bottom: 14px;
  font-size: 28px;
  text-align: left;
}

.overview__stack .current-issue h3 {
  max-width: 560px;
  font-size: 22px;
}

.overview__stack .current-issue p {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.65;
}

.overview__stack .current-issue .button {
  min-width: 170px;
  text-align: center;
}

.overview__stack .announcements {
  border-radius: var(--radius);
  padding: 26px;
}

.overview__stack .announcements .section-heading-row {
  align-items: center;
  margin-bottom: 18px;
}

.overview__stack .announcements .section-heading-row h2 {
  margin-bottom: 0;
  font-size: 26px;
}

.announcement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.announcements .announcement-list .announcement-item {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}

.announcements .announcement-list .announcement-media {
  width: 132px;
}

.announcements .announcement-list .announcement-copy strong {
  font-size: 14px;
}

.announcements .announcement-list .announcement-copy > span {
  font-size: 11px;
}

.announcements {
  min-width: 0;
  padding: 18px;
}

.announcements .section-heading-row {
  margin-bottom: 8px;
}

.announcements .section-heading-row h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.announcements .announcement-item {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  overflow: hidden;
  min-width: 0;
  padding: 13px 0;
}

.announcements .announcement-media {
  display: grid;
  width: 104px;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--teal);
  background: #eef5f7;
  font-size: 16px;
  font-weight: 800;
}

.announcements .announcement-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f8fa;
}

.announcement-copy {
  min-width: 0;
}

.announcements .announcement-copy strong {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.announcements .announcement-copy > span {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 5px;
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.announcements .announcement-copy > a {
  font-size: 10px;
}

.news-guide-frame img,
.news-admin-list > article > img {
  object-fit: contain;
  background: #f4f7f9;
}

.rich-news-field {
  display: grid;
  gap: 7px;
}

.rich-news-field__label {
  color: var(--navy);
  font-size: 11px;
  font-weight: 750;
}

.rich-news-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  border: 1px solid #cbdbe3;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  padding: 7px;
  background: #f4f7f9;
}

.rich-news-toolbar__group {
  display: flex;
  gap: 3px;
  padding-left: 5px;
  border-left: 1px solid #d3dfe5;
}

.rich-news-toolbar button,
.rich-news-toolbar select {
  min-width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0 8px;
  color: var(--navy);
  background: transparent;
  box-shadow: none;
  font-size: 10px;
  font-weight: 700;
}

.news-editor-fields .rich-news-toolbar select {
  width: 132px;
  flex: 0 0 132px;
  padding-right: 24px;
}

.rich-news-toolbar button:hover,
.rich-news-toolbar button:focus-visible,
.rich-news-toolbar select:focus-visible {
  border-color: #9dbbc6;
  background: #fff;
  outline: 2px solid rgba(0, 143, 138, .15);
}

.rich-news-editor {
  overflow-y: auto;
  min-height: 360px;
  max-height: 720px;
  border: 1px solid #cbdbe3;
  border-radius: 0 0 9px 9px;
  padding: 26px clamp(18px, 4vw, 42px);
  color: #233b53;
  background: #fff;
  font-family: Lora, Georgia, serif;
  font-size: 15px;
  line-height: 1.8;
}

.rich-news-editor:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 143, 138, .12);
}

.rich-news-editor h2,
.rich-news-editor h3 {
  margin: 1.5em 0 .55em;
  color: var(--navy);
  line-height: 1.25;
}

.rich-news-editor img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  margin: 22px auto;
  object-fit: contain;
}

.news-hero {
  padding: 58px 0 54px;
}

.news-hero h1 {
  font-size: clamp(34px, 4vw, 52px);
}

.news-layout {
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 34px;
}

.news-feature {
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
  min-width: 0;
}

.news-feature__media {
  display: grid;
  min-height: 280px;
  place-items: center;
  overflow: hidden;
  background: #edf3f6;
}

.news-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 420px;
  aspect-ratio: auto;
  object-fit: contain;
}

.news-feature__media.is-empty,
.news-card__media.is-empty {
  color: rgba(0, 143, 138, .72);
  background: linear-gradient(135deg, #f1f7f8, #e8f0f3);
  font-family: Lora, Georgia, serif;
  font-size: 30px;
  font-weight: 600;
}

.news-feature__copy {
  min-width: 0;
  padding: 30px;
}

.news-feature h2 {
  overflow-wrap: anywhere;
  font-size: clamp(24px, 2.5vw, 30px);
}

.news-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
  border-top: 0;
}

.news-list .news-card,
.news-archive-grid .news-card {
  display: flex;
  overflow: hidden;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: #fff;
}

.news-card__media {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  border-radius: 0;
}

.news-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: #f3f6f8;
}

.news-card__copy {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  padding: 18px;
}

.news-card h2 {
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 14px;
  font-size: 11px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card .news-read-link {
  margin-top: auto;
}

.news-detail {
  overflow: hidden;
  padding: 48px 0 76px;
}

.news-detail .container {
  min-width: 0;
}

.news-detail__header {
  max-width: 820px;
  margin-bottom: 26px;
}

.news-detail__header h1 {
  overflow-wrap: anywhere;
  font-family: Lora, Georgia, serif;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.12;
}

.news-detail__media {
  display: grid;
  width: min(980px, 100%);
  min-width: 0;
  place-items: center;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(8px, 1.4vw, 16px);
  background: #f1f5f7;
}

.news-detail__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 760px);
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: none;
}

.news-detail__body {
  width: min(100%, 740px);
  min-width: 0;
  margin-top: 38px;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.86;
}

.news-detail__body h2,
.news-detail__body h3,
.news-detail__body h4 {
  margin: 1.65em 0 .55em;
  color: var(--navy);
  line-height: 1.25;
}

.news-detail__body h2 { font-size: 27px; }
.news-detail__body h3 { font-size: 22px; }
.news-detail__body ul,
.news-detail__body ol { padding-left: 1.4em; }
.news-detail__body blockquote { margin: 28px 0; border-left: 4px solid var(--teal); padding: 4px 0 4px 20px; color: #41566a; }
.news-detail__body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.news-detail__body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 680px);
  margin: 30px auto;
  border-radius: 8px;
  object-fit: contain;
}

.news-share {
  align-items: center;
  max-width: 740px;
  gap: 9px;
}

.news-share > span {
  margin-right: 9px;
}

.news-share a,
.news-share button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.news-share a:hover,
.news-share button:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  background: #edf8f7;
}

.news-share svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news-share .is-facebook svg { fill: currentColor; stroke: none; }
.news-share .is-facebook { color: #1877f2; }
.news-share .is-linkedin { color: #0a66c2; }
.news-share .is-whatsapp { color: #128c7e; }
.news-share button.is-copied { color: #fff; background: var(--teal); }

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

  .journal-about {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .overview__stack .current-issue {
    grid-template-columns: 160px minmax(0, 1fr) auto;
  }

  .overview__stack .current-issue img {
    width: 160px;
    height: 226px;
  }

  .announcements .announcement-item {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .announcements .announcement-media {
    width: 132px;
  }
}

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

  .news-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .overview__stack {
    gap: 24px;
  }

  .journal-about {
    padding-bottom: 28px;
  }

  .overview__stack .current-issue {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }

  .overview__stack .current-issue img {
    width: 112px;
    height: 158px;
  }

  .overview__stack .current-issue h2 {
    font-size: 23px;
  }

  .overview__stack .current-issue h2::after,
  .overview__stack .announcements h2::after {
    margin-right: 0;
    margin-left: 0;
  }

  .overview__stack .current-issue h3 {
    font-size: 17px;
  }

  .overview__stack .current-issue p {
    font-size: 12px;
  }

  .overview__stack .current-issue .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .overview__stack .announcements {
    padding: 18px;
  }

  .overview__stack .announcements .section-heading-row {
    flex-direction: row;
    align-items: center;
  }

  .overview__stack .announcements .section-heading-row h2 {
    text-align: left;
  }

  .announcement-list {
    grid-template-columns: 1fr;
  }

  .announcements .announcement-list .announcement-item {
    grid-template-columns: 104px minmax(0, 1fr);
    padding: 12px;
  }

  .announcements .announcement-list .announcement-media {
    width: 104px;
  }

  .news-feature {
    grid-template-columns: 1fr;
  }

  .news-feature__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .news-feature__media img {
    max-height: none;
  }

  .news-list,
  .news-sidebar {
    grid-template-columns: 1fr;
  }

  .news-card p {
    display: -webkit-box;
  }

  .news-detail {
    padding-top: 32px;
  }

  .news-detail__header h1 {
    font-size: clamp(29px, 9vw, 40px);
  }

  .news-detail__header p {
    font-size: 14px;
  }

  .news-detail__media {
    border-radius: 10px;
    padding: 6px;
  }

  .news-detail__image {
    max-height: 68vh;
    border-radius: 6px;
  }

  .news-detail__body {
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.78;
  }

  .news-detail__body h2 { font-size: 23px; }
  .news-detail__body h3 { font-size: 20px; }

  .news-share > span {
    width: 100%;
    margin-bottom: 4px;
  }

  .rich-news-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .rich-news-toolbar__group {
    flex: 0 0 auto;
  }

  .rich-news-editor {
    min-height: 300px;
    padding: 20px 16px;
  }
}

@media (max-width: 460px) {
  .announcements .announcement-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .announcements .announcement-media {
    width: 92px;
  }
}

.clearance-overview,
.clearance-steps {
  display: grid;
  gap: 10px;
}

.clearance-overview {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.clearance-overview article,
.clearance-panel,
.discussion-panel,
.letter-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.clearance-overview article {
  padding: 14px;
}

.clearance-overview strong,
.clearance-overview span {
  display: block;
}

.clearance-overview strong {
  color: var(--navy);
  font-size: 13px;
}

.clearance-overview span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.clearance-panel,
.discussion-panel {
  margin-top: 14px;
  padding: 14px;
}

.clearance-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.clearance-steps span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.clearance-steps .is-done {
  border-color: rgba(0, 150, 143, 0.28);
  color: #075d59;
  background: #dff5f1;
}

.letter-preview {
  margin-top: 12px;
  padding: 12px;
}

.letter-preview summary,
.discussion-panel summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 900;
}

.letter-preview div {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--ink);
  line-height: 1.65;
}

.inline-workflow-form,
.discussion-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.inline-workflow-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.inline-workflow-form input,
.discussion-form input,
.discussion-form select,
.discussion-form textarea {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  background: var(--white);
}

.inline-workflow-form button,
.discussion-form button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: #ffffff;
  background: var(--teal);
  font-weight: 850;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.discussion-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.discussion-list article {
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  padding: 12px;
  background: var(--white);
}

.discussion-list strong,
.discussion-list span {
  display: block;
}

.discussion-list strong {
  color: var(--navy);
}

.discussion-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.discussion-list p {
  margin: 8px 0 0;
}

.empty-state--compact {
  padding: 12px;
}

.finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.finance-grid h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.finance-list {
  display: grid;
  gap: 10px;
}

.finance-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.finance-list strong,
.finance-list span,
.finance-list small {
  display: block;
}

.finance-list strong {
  color: var(--navy);
}

.finance-list span,
.finance-list small {
  color: var(--muted);
  font-size: 12px;
}

.finance-actions {
  display: grid;
  gap: 7px;
  min-width: 150px;
}

.finance-actions a,
.finance-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--navy);
  background: var(--white);
  font-size: 12px;
  font-weight: 850;
}

.finance-actions button {
  border-color: var(--teal);
  color: #ffffff;
  background: var(--teal);
}

.finance-actions form {
  display: grid;
  gap: 7px;
}

.finance-actions input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 9px;
}

.document-page {
  min-height: 100vh;
  background: #eef5f7;
  padding: 34px 16px 92px;
}

.document-sheet {
  width: min(920px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(5, 28, 57, 0.08);
}

.document-header {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border-bottom: 4px solid var(--teal);
  padding-bottom: 20px;
}

.document-header img {
  width: 180px;
  height: 118px;
  object-fit: contain;
  object-position: center;
}

.document-header strong,
.document-header span {
  display: block;
}

.document-header strong {
  color: var(--navy);
  font-size: 28px;
}

.document-header span {
  color: var(--muted);
}

.document-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0;
}

.document-title h1 {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
}

.document-title p {
  margin: 0;
  color: var(--muted);
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.document-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.document-grid strong,
.document-grid span {
  display: block;
}

.document-grid strong {
  color: var(--teal);
  font-size: 12px;
  text-transform: uppercase;
}

.document-grid span {
  margin-top: 5px;
  color: var(--navy);
  font-weight: 850;
}

.document-body {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
}

.document-body h2 {
  color: var(--navy);
}

.document-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.finance-report-strip {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(135deg, #f7fbfc 0%, #ffffff 100%);
}

.finance-report-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.finance-report-head h3,
.finance-mini-reports h4 {
  margin: 0 0 6px;
  color: var(--navy);
}

.finance-report-head p {
  margin: 0;
  color: var(--muted);
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.report-actions a,
.report-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--navy);
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.report-actions a:first-child,
.report-filter button {
  border-color: var(--teal);
  color: #ffffff;
  background: var(--teal);
}

.finance-kpi-grid,
.report-kpi-grid,
.audit-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.finance-kpi-grid article,
.report-kpi-grid article,
.audit-focus-grid article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #ffffff;
}

.finance-kpi-grid span,
.report-kpi-grid span,
.audit-focus-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.finance-kpi-grid strong,
.report-kpi-grid strong,
.audit-focus-grid strong {
  display: block;
  margin: 6px 0;
  color: var(--navy);
  font-size: 20px;
}

.finance-kpi-grid small,
.report-kpi-grid small {
  color: var(--muted);
}

.finance-mini-reports,
.report-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.finance-mini-reports {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-columns--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-mini-reports section,
.report-columns article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #ffffff;
}

.report-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.report-row:first-of-type {
  border-top: 0;
}

.report-row strong {
  color: var(--navy);
  text-align: right;
}

.audit-focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.audit-focus-grid strong {
  margin-top: 0;
  font-size: 15px;
}

.report-page {
  background: #eef6f8;
}

.report-sheet {
  max-width: 1180px;
}

.report-sheet .document-header {
  grid-template-columns: 230px minmax(0, 1fr);
}

.report-sheet .document-header img {
  width: 220px;
  height: 128px;
  max-height: 128px;
  object-fit: contain;
}

.report-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.report-filter input,
.report-filter select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--navy);
  background: #ffffff;
  font-weight: 700;
}

.report-table {
  margin-top: 20px;
  overflow-x: auto;
}

.report-table h2,
.report-columns h2 {
  margin: 0 0 12px;
  color: var(--navy);
}

.report-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  font-size: 12px;
}

.report-table th,
.report-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.report-table th {
  color: var(--navy);
  background: #f3f8fa;
  font-size: 11px;
  text-transform: uppercase;
}

.report-table small {
  color: var(--muted);
}

.report-table .num {
  text-align: right;
  white-space: nowrap;
}

@media print {
  .document-page {
    background: #ffffff;
    padding: 0;
  }

  .document-sheet {
    width: 100%;
    border: 0;
    box-shadow: none;
  }

  .template-toolbar {
    display: none !important;
  }

  .no-print {
    display: none !important;
  }

  .report-sheet {
    max-width: none;
  }

  .report-table table {
    font-size: 10px;
  }
}

.compact-table,
.activity-list {
  display: grid;
  gap: 10px;
}

.compact-table article,
.activity-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.user-table article {
  grid-template-columns: 1fr 190px 90px;
}

.compact-table strong,
.compact-table span,
.activity-list strong,
.activity-list span,
.activity-list small {
  display: block;
}

.compact-table span,
.activity-list span,
.activity-list small {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  padding: 22px;
  color: var(--muted);
}

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

  .portal-sidebar {
    position: static;
    min-height: auto;
  }

  .portal-stats,
  .portal-form--grid,
  .editor-actions form,
  .editor-actions form:first-child,
  .clearance-overview,
  .clearance-steps,
  .inline-workflow-form,
  .finance-kpi-grid,
  .finance-grid,
  .finance-mini-reports,
  .assignment-list article,
  .publication-admin-list > article,
  .article-inline-edit,
  .report-kpi-grid,
  .report-columns,
  .report-columns--two,
  .audit-focus-grid,
  .finance-list article,
  .document-grid,
  .user-table article,
  .compact-table article {
    grid-template-columns: 1fr;
  }

  .portal-hero,
  .panel-heading,
  .finance-report-head,
  .manuscript-card__head,
  .document-title,
  .document-footer {
    flex-direction: column;
  }

  .report-actions,
  .report-filter {
    justify-content: stretch;
  }

  .report-actions a,
  .report-filter input,
  .report-filter select,
  .report-filter button {
    width: 100%;
  }

  .document-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .document-header img {
    justify-self: center;
  }

  .article-inline-edit textarea,
  .article-inline-edit button {
    grid-column: auto;
  }
}

/* CMS polish pass */
.auth-shell {
  padding: 34px;
  background:
    radial-gradient(circle at 20% 20%, rgba(19, 187, 178, 0.22), transparent 28%),
    linear-gradient(132deg, #061f42 0%, #092b57 48%, #008f8a 100%);
}

.auth-card--split {
  display: grid;
  width: min(1040px, 100%);
  min-height: 620px;
  grid-template-columns: 1.08fr 0.92fr;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--white);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  color: var(--white);
  background:
    linear-gradient(160deg, rgba(6, 31, 66, 0.94), rgba(6, 31, 66, 0.72)),
    url("../issue-2026.jpeg") center / cover;
}

.auth-panel .auth-brand {
  color: var(--white);
}

.auth-panel .auth-brand img {
  border-radius: 7px;
  background: var(--white);
  mix-blend-mode: normal;
}

.auth-panel h1 {
  max-width: 520px;
  margin: auto 0 14px;
  color: var(--white);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.02;
}

.auth-panel p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.auth-feature-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.auth-feature-list article {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.auth-feature-list strong,
.auth-feature-list span {
  display: block;
}

.auth-feature-list strong {
  color: var(--white);
}

.auth-feature-list span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.auth-login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}

.auth-login-heading span,
.portal-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--teal);
  background: #e7f5f4;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-login-heading h2 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 34px;
  letter-spacing: 0;
}

.auth-form {
  border: 0;
  padding: 0;
  box-shadow: none;
}

.auth-form input {
  min-height: 50px;
  border-color: #cbd9e2;
  background: #fbfdfe;
}

.auth-form .button {
  min-height: 50px;
  margin-top: 4px;
}

.portal-page {
  color: #17243a;
  background: #edf4f7;
}

.portal-topbar {
  height: 70px;
  padding: 0 30px;
  box-shadow: 0 1px 0 rgba(9, 43, 87, 0.06), 0 10px 30px rgba(9, 43, 87, 0.05);
}

.portal-brand span {
  font-size: 18px;
}

.portal-topbar nav a {
  border-radius: 999px;
  padding: 9px 13px;
}

.portal-topbar nav a:first-child {
  background: #eef6f8;
}

.portal-shell {
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 70px);
}

.portal-sidebar {
  top: 70px;
  gap: 6px;
  min-height: calc(100vh - 70px);
  padding: 20px 16px;
  background: linear-gradient(180deg, #061f42, #071a34);
}

.user-card {
  margin-bottom: 18px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.075);
}

.user-card__label {
  color: var(--teal-2) !important;
  font-size: 11px !important;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-sidebar a {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
}

.portal-sidebar a.is-current,
.portal-sidebar a:hover {
  background: rgba(19, 187, 178, 0.16);
  color: var(--white);
}

.portal-main {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 28px 42px;
}

.portal-hero {
  align-items: flex-end;
  border-radius: 12px;
  padding: 26px 28px;
  background:
    radial-gradient(circle at 88% 20%, rgba(19, 187, 178, 0.32), transparent 28%),
    linear-gradient(135deg, #061f42, #0a356c);
}

.portal-hero h1 {
  margin-top: 12px;
  font-size: clamp(34px, 4vw, 52px);
}

.portal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.portal-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portal-stats article {
  border-radius: 10px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 25px rgba(9, 43, 87, 0.05);
}

.portal-stats strong {
  font-size: 34px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.quick-actions a {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: var(--white);
  box-shadow: 0 10px 25px rgba(9, 43, 87, 0.04);
}

.quick-actions strong {
  color: var(--navy);
}

.quick-actions span {
  color: var(--muted);
  font-size: 13px;
}

.portal-panel {
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(9, 43, 87, 0.05);
}

.panel-heading {
  align-items: flex-start;
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbfc);
}

.panel-heading h2 {
  font-size: 22px;
}

.portal-panel > .portal-form,
.portal-panel > .workflow-board,
.portal-panel > .compact-table,
.portal-panel > .activity-list {
  margin: 0;
  padding: 20px 22px;
}

.portal-form--grid {
  gap: 14px;
}

.portal-form--grid input,
.portal-form--grid select,
.portal-form--grid textarea,
.review-form select,
.review-form textarea {
  border-color: #cbd9e2;
  background: #fbfdfe;
}

.portal-form--grid textarea {
  min-height: 112px;
}

.workflow-board {
  background: #fbfdfe;
}

.manuscript-card {
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(9, 43, 87, 0.04);
}

.manuscript-card__head {
  align-items: center;
}

.manuscript-card h3 {
  font-size: 18px;
}

.status-pill {
  min-width: 112px;
  padding: 7px 11px;
}

.editor-actions {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.compact-table,
.activity-list {
  background: #fbfdfe;
}

.compact-table article,
.activity-list article {
  border-radius: 8px;
  background: var(--white);
}

.empty-state {
  border-style: dashed;
  background: var(--white);
}

@media (max-width: 1100px) {
  .auth-card--split,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    min-height: 420px;
  }

  .portal-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .auth-shell {
    padding: 16px;
  }

  .auth-panel,
  .auth-login-panel {
    padding: 26px;
  }

  .portal-topbar {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }

  .portal-shell,
  .portal-stats {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    top: 0;
    min-height: auto;
  }

  .portal-main {
    padding: 16px;
  }
}

/* Public CAJ header and footer refinement */
.site-header {
  position: relative;
  z-index: 25;
  background: var(--white);
}

.navbar__inner {
  min-height: 74px;
  gap: 18px;
}

.brand {
  flex: 0 0 360px;
  min-width: 0;
  gap: 12px;
}

.brand img {
  width: 96px;
  height: 54px;
  object-fit: cover;
  object-position: left center;
  border-radius: 4px;
  mix-blend-mode: normal;
}

.brand strong {
  font-size: 15px;
  line-height: 1.08;
}

.brand small {
  max-width: 260px;
  font-size: 10.5px;
  line-height: 1.32;
}

.navlinks {
  flex: 1;
  min-width: 0;
  gap: 16px;
  font-size: 12px;
  line-height: 1.2;
}

.navlinks a {
  padding-top: 26px;
  padding-bottom: 26px;
}

.nav-submit,
.nav-login {
  display: inline-flex !important;
  min-height: 38px;
  align-items: center;
  border-radius: 5px;
  padding: 0 15px !important;
  line-height: 1.15;
}

.nav-submit {
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--teal), #007c78);
}

.nav-login {
  border: 1px solid var(--line);
  color: var(--navy) !important;
  background: var(--white);
}

.nav-submit::after,
.nav-login::after {
  display: none;
}

.footer__brand img {
  width: min(210px, 100%);
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 3px;
  background: transparent;
  margin-bottom: 14px;
}

.footer__brand p {
  max-width: 310px;
}

.page-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 82% 22%, rgba(19, 187, 178, 0.24), transparent 28%),
    linear-gradient(135deg, #061f42, #0a356c);
}

.page-hero .container {
  padding: 62px 0;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.page-grid,
.contact-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.page-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(5, 28, 57, 0.035);
}

.page-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
}

.page-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.page-card .button {
  margin-top: 16px;
}

.current-page-layout {
  display: grid;
  gap: 24px;
}

.board-grid--page {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer {
  background:
    linear-gradient(180deg, #061f42, #051a35);
}

.footer__grid {
  align-items: start;
  padding: 30px 0 28px;
}

.footer__brand img {
  width: min(170px, 100%);
  height: auto;
  object-fit: contain;
}

.footer__brand p {
  margin-bottom: 12px;
}

.footer__publisher {
  border-left: 3px solid var(--teal);
  padding-left: 12px;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.6;
  font-weight: 650;
}

.footer__contact-card {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 22px;
}

.footer__contact-card p {
  line-height: 1.65;
  word-break: normal;
}

.footer__bottom {
  align-items: center;
  padding: 16px 0;
}

@media (max-width: 1080px) {
  .page-grid,
  .contact-page-grid,
  .board-grid--page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .nav-submit,
  .nav-login {
    min-height: auto;
    padding: 13px 0 !important;
    color: var(--navy) !important;
    background: transparent;
  }
}

@media (max-width: 820px) {
  .navbar__inner {
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
    width: auto;
    max-width: calc(100% - 56px);
  }

  .brand img {
    width: 78px;
    height: 48px;
  }

  .navlinks {
    gap: 0;
  }

  .navlinks a {
    padding: 10px 0;
  }

  .search-button {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-submit,
  .nav-login {
    justify-content: flex-start;
    border: 0;
  }

  .page-hero .container {
    padding: 42px 0;
  }

  .page-grid,
  .contact-page-grid,
  .board-grid--page {
    grid-template-columns: 1fr;
  }
}

/* CMS multiuser modules and minimal auth */
.auth-shell--minimal {
  background:
    radial-gradient(circle at 12% 12%, rgba(19, 187, 178, 0.18), transparent 26%),
    linear-gradient(145deg, #f7fbfc 0%, #edf5f7 48%, #e6f4f3 100%);
}

.auth-card--minimal {
  width: min(440px, 100%);
  border: 1px solid rgba(9, 43, 87, 0.1);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(6, 31, 66, 0.14);
}

.auth-brand--center {
  justify-content: center;
  margin-bottom: 18px;
  text-align: center;
}

.auth-brand--center img {
  width: 96px;
  height: 62px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  background: var(--white);
  mix-blend-mode: normal;
}

.auth-brand--center span {
  color: var(--navy);
  font-size: 16px;
  text-transform: uppercase;
}

.auth-card--minimal .auth-login-panel {
  padding: 0;
}

.auth-login-heading--center {
  text-align: center;
}

.auth-login-heading--center span {
  margin-inline: auto;
}

.auth-login-heading--center h1 {
  margin: 12px 0 8px;
  color: var(--navy);
  font-size: 31px;
  line-height: 1.1;
}

.auth-login-heading--center p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: #f7fbfc;
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: transparent;
  font-weight: 800;
}

.auth-tabs button.is-active {
  color: var(--white);
  background: var(--navy);
}

.auth-form[hidden] {
  display: none;
}

.auth-form--register textarea {
  min-height: 84px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.module-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 10px 25px rgba(9, 43, 87, 0.04);
}

.module-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  color: var(--teal);
  background: #e7f5f4;
  font-size: 12px;
  font-weight: 900;
}

.publication-admin-list {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  background: #fbfdfe;
}

.publication-admin-list > article {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: var(--white);
}

.publication-admin-list strong,
.publication-admin-list span,
.publication-admin-list small,
.publication-admin-list a {
  display: block;
}

.publication-admin-list strong {
  color: var(--navy);
}

.publication-admin-list span,
.publication-admin-list small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.publication-admin-list a {
  margin-top: 8px;
  color: var(--teal);
  font-weight: 900;
  font-size: 12px;
}

.article-inline-edit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.article-inline-edit textarea,
.article-inline-edit button {
  grid-column: span 3;
}

.article-inline-edit input,
.article-inline-edit select,
.article-inline-edit textarea,
.article-inline-edit button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--white);
  font: inherit;
  font-size: 13px;
}

.article-inline-edit button {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
  font-weight: 900;
}

.email-log-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding: 18px 22px 22px;
}

.email-log-panel h3 {
  margin: 0 0 6px;
  color: var(--navy);
}

.email-log-panel > p {
  margin: 0 0 12px;
  color: var(--muted);
}

.email-log-panel article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #8fb4c2;
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.email-log-panel article + article {
  margin-top: 8px;
}

.email-log-panel article.is-failed {
  border-left-color: #c84b31;
}

.email-log-panel article.is-sent {
  border-left-color: var(--teal);
}

.email-log-panel strong,
.email-log-panel span,
.email-log-panel small {
  display: block;
}

.email-log-panel span,
.email-log-panel small {
  color: var(--muted);
  font-size: 12px;
}

.email-log-panel b {
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
}

.module-card strong {
  color: var(--navy);
  font-size: 16px;
}

.module-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.reviewer-desk {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 22px;
  background: #fbfdfe;
}

.reviewer-desk article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: var(--white);
}

.reviewer-desk strong {
  display: block;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

.reviewer-desk span {
  color: var(--muted);
  font-size: 13px;
}

.user-table article {
  grid-template-columns: minmax(210px, 1fr) minmax(360px, 1.5fr) auto;
}

.user-access-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 120px auto;
  gap: 8px;
}

.user-access-form select,
.user-table form button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--white);
  font-size: 13px;
}

.user-table form button {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .module-grid,
  .reviewer-desk {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-table article,
  .user-access-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .auth-card--minimal {
    padding: 22px;
  }

  .module-grid,
  .module-guide-list,
  .template-guide,
  .reviewer-desk {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .portal-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
  }

  .portal-brand {
    flex: 1 1 100%;
    min-width: 0;
  }

  .portal-brand img {
    width: 78px;
    height: 46px;
  }

  .portal-brand span {
    font-size: 15px;
  }

  .portal-topbar nav {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .portal-topbar nav a {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
  }

  .portal-topbar nav a:last-child {
    color: #ffffff;
    border-color: var(--navy);
    background: var(--navy);
  }

  .portal-shell {
    display: block;
  }

  .portal-sidebar {
    position: sticky;
    top: 118px;
    z-index: 45;
    display: flex;
    min-height: auto;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 14px;
  }

  .portal-sidebar .user-card {
    display: none;
  }

  .portal-sidebar a {
    flex: 0 0 auto;
    min-height: 36px;
    white-space: nowrap;
  }

  .portal-main {
    padding: 14px 14px 34px;
  }

  .portal-hero {
    display: grid;
    gap: 16px;
  }

  .portal-hero-actions {
    justify-content: stretch;
  }

  .portal-hero-actions .button {
    width: 100%;
  }

  .portal-stats,
  .module-grid,
  .module-guide-list,
  .template-guide {
    grid-template-columns: 1fr;
  }

  .module-category,
  .portal-panel {
    border-radius: 10px;
  }

  .module-category__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .template-actions .button {
    width: 100%;
  }

  .pdf-preview iframe,
  .public-pdf-viewer iframe {
    height: 420px;
  }

  .article-template-sheet {
    padding: 20px;
  }

  .article-template-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-template-header img {
    width: min(220px, 100%);
  }

  .template-toolbar {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .template-toolbar a,
  .template-toolbar button {
    flex: 1;
    text-align: center;
  }
}

/* Compact multi-content 1:1 popup and popup manager. */
.caj-managed-popup { width: min(860px,calc(100vw - 32px)); max-height: min(620px,calc(100dvh - 32px)); overflow: hidden; border: 1px solid rgba(69,210,202,.42); border-radius: 18px; padding: 0; color: #f7fbff; background: #071f45; box-shadow: 0 28px 80px rgba(3,16,35,.48); }
.caj-managed-popup[open] { display: block; }
.caj-managed-popup::backdrop { background: rgba(3,16,35,.72); backdrop-filter: blur(4px); }
.caj-managed-popup > form { position: absolute; z-index: 5; top: 14px; right: 14px; }
.caj-managed-popup > form button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; background: rgba(12,49,95,.9); font-size: 22px; }
.caj-popup-stage { min-height: 430px; }
.caj-popup-slide { display: grid; min-height: 430px; grid-template-columns: 430px minmax(0,1fr); align-items: stretch; }
.caj-popup-slide[hidden] { display: none; }
.caj-popup-slide > img { display: block; width: 430px; height: 430px; aspect-ratio: 1; object-fit: cover; background: #fff; }
.caj-popup-copy { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 54px 38px 50px; }
.caj-popup-copy > span { margin-bottom: 12px; color: #59d8d0; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.caj-popup-copy h2 { margin: 0 34px 12px 0; color: #fff; font-size: clamp(24px,3vw,34px); line-height: 1.1; }
.caj-popup-copy p { margin: 0 0 20px; color: #b9c9d7; font-size: 12px; line-height: 1.65; }
.caj-popup-copy > div { display: flex; flex-wrap: wrap; gap: 9px; }
.caj-popup-nav { position: absolute; right: 28px; bottom: 18px; display: flex; align-items: center; gap: 12px; }
.caj-popup-nav > button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; background: rgba(255,255,255,.06); }
.caj-popup-nav > div { display: flex; gap: 6px; }
.caj-popup-nav [data-popup-dot] { width: 7px; height: 7px; border: 0; border-radius: 50%; padding: 0; background: rgba(255,255,255,.35); }
.caj-popup-nav [data-popup-dot].is-active { width: 20px; border-radius: 5px; background: #59d8d0; }
.popup-manager-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(230px,.65fr); gap: 24px; }
.popup-manager-preview { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--soft); }
.popup-manager-preview > strong { display: block; margin-bottom: 12px; color: var(--navy); }
.popup-manager-preview > img,.popup-manager-preview > div { display: grid; width: 100%; aspect-ratio: 1; place-items: center; border: 1px dashed #b8c8d3; border-radius: 9px; object-fit: cover; background: #fff; text-align: center; }
.popup-manager-preview > div small { display: block; margin-top: 5px; color: var(--muted); }
.popup-manager-preview dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 11px; }
.popup-manager-preview dd { margin: 0; font-weight: 700; }
.popup-content-list { display: grid; gap: 10px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.popup-content-list__head { display: flex; align-items: center; justify-content: space-between; }
.popup-content-list__head h3 { margin: 0; color: var(--navy); font-size: 15px; }
.popup-content-list__head span { color: var(--muted); font-size: 10px; }
.popup-content-list > article { display: grid; grid-template-columns: 82px minmax(0,1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; }
.popup-content-list > article > img,.popup-content-placeholder { display: grid; width: 82px; height: 82px; aspect-ratio: 1; place-items: center; border-radius: 8px; object-fit: cover; background: var(--soft); color: var(--muted); font-size: 9px; }
.popup-content-list article > div:nth-child(2) { display: grid; gap: 4px; }
.popup-content-list article strong { color: var(--navy); font-size: 12px; }
.popup-content-list article small,.popup-content-list article p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.popup-content-actions { display: flex; align-items: center; gap: 8px; }
.popup-content-actions a,.popup-content-actions button { border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; color: var(--navy); background: #fff; font: inherit; font-size: 9px; font-weight: 800; }
.popup-content-actions button { color: #b13545; }

@media (max-width: 760px) {
  .site-footer .footer__standards { display: grid; grid-template-columns: 1fr; gap: 9px; border-bottom: 0; padding: 14px 0; }
  .site-footer .footer-badge { width: 100%; min-height: 58px; justify-content: flex-start; border: 1px solid rgba(89,216,208,.2); border-radius: 10px; padding: 10px 13px; background: rgba(255,255,255,.035); }
  .site-footer .footer-badge img { width: 56px; max-width: 56px; height: 30px; max-height: 30px; }
  .site-footer .footer-badge--ssl svg { width: 27px; height: 27px; margin-inline: 10px 8px; }
  .site-footer .footer__bottom { display: grid; justify-items: center; padding: 17px 16px max(30px,env(safe-area-inset-bottom)); text-align: center; font-size: 10px; line-height: 1.55; }
  .site-footer .footer__bottom > span:first-child { max-width: 295px; }
  .footer-is-visible .caj-chatbot__toggle { opacity: 0; pointer-events: none; transform: translateY(12px); }
  .caj-managed-popup { width: min(390px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; }
  .caj-popup-stage,.caj-popup-slide { min-height: 0; }
  .caj-popup-slide { grid-template-columns: 1fr; }
  .caj-popup-slide > img { width: 100%; height: auto; aspect-ratio: 1; }
  .caj-popup-copy { padding: 24px 20px 68px; }
  .caj-popup-copy h2 { margin-right: 26px; font-size: 22px; }
  .caj-popup-copy > div { display: grid; }
  .caj-popup-copy .button { width: 100%; min-height: 40px; }
  .caj-popup-nav { right: 18px; bottom: 16px; left: 18px; justify-content: center; }
  .popup-manager-layout { grid-template-columns: 1fr; }
  .popup-content-list > article { grid-template-columns: 64px minmax(0,1fr); }
  .popup-content-list > article > img,.popup-content-placeholder { width: 64px; height: 64px; }
  .popup-content-actions { grid-column: 1/-1; justify-content: flex-end; }
}

@media print {
  .template-page {
    padding: 0;
    background: #ffffff;
  }

  .article-template-sheet {
    width: 100%;
    border: 0;
    box-shadow: none;
  }

  .template-toolbar {
    display: none;
  }
}

/* Compact auth, lighter dashboard, article archive detail */
.auth-shell--minimal {
  min-height: 100vh;
  padding: 22px;
  background:
    radial-gradient(circle at 18% 18%, rgba(19, 187, 178, 0.18), transparent 24%),
    linear-gradient(135deg, #f7fbfc, #e8f4f5);
}

.auth-card--minimal {
  display: grid;
  width: min(820px, 100%);
  grid-template-columns: 0.82fr 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 14px;
}

.auth-card--minimal > .auth-brand--center {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  margin: 0;
  padding: 26px 24px;
  background:
    linear-gradient(150deg, rgba(6, 31, 66, 0.94), rgba(9, 43, 87, 0.88)),
    url("../issue-2026.jpeg") center / cover;
}

.auth-card--minimal > .auth-brand--center img {
  width: 142px;
  height: 92px;
  margin-bottom: 12px;
}

.auth-card--minimal > .auth-brand--center span {
  color: var(--white);
  font-size: 18px;
  line-height: 1.2;
}

.auth-card--minimal .auth-login-panel {
  padding: 28px;
}

.auth-login-heading--center {
  margin-bottom: 14px;
}

.auth-login-heading--center h1 {
  font-size: 28px;
}

.auth-login-heading--center p {
  margin-bottom: 0;
  font-size: 13px;
}

.auth-form {
  display: grid;
  gap: 11px;
}

.auth-form label {
  font-size: 12px;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  min-height: 42px;
}

.auth-form--register {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-form--register label:nth-of-type(5),
.auth-form--register label:nth-of-type(6),
.auth-form--register button {
  grid-column: 1 / -1;
}

.auth-form--register textarea {
  min-height: 70px;
}

.auth-links {
  margin-top: 14px;
}

.portal-topbar {
  height: 62px;
}

.portal-brand img {
  width: 58px;
  height: 36px;
  object-position: center;
}

.portal-shell {
  grid-template-columns: 230px minmax(0, 1fr);
}

.portal-sidebar {
  top: 62px;
  min-height: calc(100vh - 62px);
  padding: 14px;
}

.portal-sidebar a {
  min-height: 38px;
  font-size: 13px;
}

.user-card {
  padding: 14px;
  min-width: 0;
  overflow: hidden;
}

.user-card strong,
.user-card span,
.user-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-main {
  padding: 18px;
}

.portal-hero {
  padding: 22px;
}

.portal-hero h1 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.portal-hero p {
  font-size: 14px;
}

.portal-stats article {
  padding: 14px;
}

.portal-stats strong {
  font-size: 28px;
}

.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Header, auth and CMS brand polish */
.nav-login {
  display: none !important;
}

.auth-shell--minimal {
  background:
    radial-gradient(circle at 18% 15%, rgba(19, 187, 178, 0.22), transparent 22%),
    radial-gradient(circle at 82% 80%, rgba(6, 31, 66, 0.12), transparent 26%),
    linear-gradient(135deg, #f6fbfc, #e6f2f4);
}

.auth-card--minimal {
  width: min(860px, 100%);
  border: 1px solid rgba(6, 31, 66, 0.08);
  box-shadow: 0 30px 90px rgba(6, 31, 66, 0.14);
}

.auth-card--minimal > .auth-brand--center {
  position: relative;
  overflow: hidden;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 18% 14%, rgba(21, 198, 188, 0.26), transparent 24%),
    linear-gradient(155deg, #061f42, #082a54 54%, #041527);
}

.auth-card--minimal > .auth-brand--center::after {
  position: absolute;
  inset: auto -28% -42% 18%;
  height: 180px;
  border-radius: 999px;
  background: rgba(21, 198, 188, 0.12);
  content: "";
  transform: rotate(-12deg);
}

.auth-card--minimal > .auth-brand--center img {
  position: relative;
  z-index: 1;
  width: min(250px, 86%);
  height: auto;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.auth-card--minimal > .auth-brand--center span {
  position: relative;
  z-index: 1;
  max-width: 250px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-card--minimal .auth-login-panel {
  padding: 34px;
}

.portal-topbar {
  height: 68px;
  background: #ffffff;
}

.portal-brand {
  gap: 14px;
}

.portal-brand img {
  width: 84px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  object-position: left center;
  mix-blend-mode: normal;
}

.portal-brand span {
  padding-left: 12px;
  border-left: 1px solid #d9e4eb;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.15;
}

.module-hub {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.module-category {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(9, 43, 87, 0.05);
}

.module-category__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.module-category__head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.module-category__head span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #08736f;
  background: #e7f6f5;
  font-size: 12px;
  font-weight: 800;
}

.module-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 22px;
}

.module-guide-list article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fbfdfe;
}

.module-guide-list strong,
.module-guide-list span {
  display: block;
}

.module-guide-list strong {
  color: var(--navy);
}

.module-guide-list span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.template-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 22px 0;
}

.template-guide article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fbfdfe;
}

.template-guide span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #08736f;
  background: #e2f5f3;
  font-size: 12px;
  font-weight: 800;
}

.template-guide strong {
  display: block;
  margin-top: 10px;
  color: var(--navy);
}

.template-guide p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 22px 22px;
}

.pdf-preview {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fbfdfe;
}

.pdf-preview summary {
  padding: 12px 14px;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.pdf-preview iframe,
.public-pdf-viewer iframe {
  display: block;
  width: 100%;
  height: min(72vh, 720px);
  border: 0;
  background: #edf4f7;
}

.public-pdf-viewer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.template-page {
  min-height: 100vh;
  padding: 28px;
  background: #edf4f7;
  color: #15233a;
  font-family: Inter, Arial, sans-serif;
}

.article-template-sheet {
  width: min(920px, 100%);
  margin: 0 auto;
  border: 1px solid #d9e4eb;
  border-radius: 10px;
  padding: 34px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(6, 31, 66, 0.12);
}

.article-template-header {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 3px solid #008f8a;
  padding-bottom: 18px;
}

.article-template-header img {
  width: 210px;
  border-radius: 6px;
}

.article-template-header strong,
.article-template-header span {
  display: block;
}

.article-template-header strong {
  color: var(--navy);
  font-size: 22px;
}

.article-template-header span,
.article-template-meta {
  color: var(--muted);
}

.article-template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #d9e4eb;
  padding: 14px 0;
  font-size: 12px;
}

.article-template-meta span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef6f8;
}

.article-template-body h1 {
  margin: 26px 0 10px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.2;
}

.article-template-body h2 {
  margin: 22px 0 8px;
  color: var(--navy);
  font-size: 18px;
}

.article-template-body p,
.article-template-body li {
  color: #2c3d55;
  font-size: 14px;
}

.template-authors {
  font-weight: 800;
}

.template-affiliation {
  color: var(--muted) !important;
  font-size: 12px !important;
}

.article-template-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #d9e4eb;
  margin-top: 26px;
  padding-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.template-toolbar {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}

.template-toolbar a,
.template-toolbar button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--navy);
  background: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(6, 31, 66, 0.12);
}

.template-toolbar button {
  border-color: var(--teal);
  color: #ffffff;
  background: var(--teal);
}

.module-card {
  min-height: 142px;
  padding: 15px;
}

.module-card span {
  width: 36px;
  height: 36px;
}

.module-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 22px;
  background: #fbfdfe;
}

.module-guide-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--white);
}

.module-guide-list strong,
.module-guide-list span {
  display: block;
}

.module-guide-list strong {
  color: var(--navy);
}

.module-guide-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.article-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.article-detail {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  background: var(--white);
}

.article-detail > span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.article-detail h2 {
  margin: 10px 0 12px;
  color: var(--navy);
}

.article-detail p {
  color: var(--muted);
}

.article-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-photo {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  background: var(--soft);
}

.profile--wide .profile-photo {
  width: 96px;
  height: 96px;
}

.board-editor-form {
  border-top: 0;
}

.board-admin-list {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  background: #fbfdfe;
}

.board-admin-list article {
  display: grid;
  grid-template-columns: 74px minmax(200px, 0.65fr) minmax(0, 1.35fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: var(--white);
}

.board-admin-list img,
.board-admin-list .avatar {
  width: 64px;
  height: 64px;
  border-radius: 8px;
}

.board-admin-list strong,
.board-admin-list span,
.board-admin-list small {
  display: block;
}

.board-admin-list strong {
  color: var(--navy);
}

.board-admin-list span,
.board-admin-list small {
  color: var(--muted);
  font-size: 13px;
}

.board-inline-edit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.board-inline-edit input,
.board-inline-edit select,
.board-inline-edit textarea,
.board-inline-edit button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--white);
  font-size: 12px;
}

.board-inline-edit textarea {
  grid-column: 1 / -2;
}

.board-inline-edit button {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
  font-weight: 800;
}

.danger-inline-form {
  grid-column: 3 / -1;
  justify-self: end;
}

.danger-inline-form button {
  min-height: 34px;
  border: 1px solid rgba(180, 35, 24, 0.25);
  border-radius: 6px;
  padding: 8px 12px;
  color: #b42318;
  background: #fff4f2;
  font-size: 12px;
  font-weight: 850;
}

.slider-admin-list {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  background: #fbfdfe;
}

.slider-admin-list article {
  display: grid;
  grid-template-columns: 150px minmax(180px, 0.65fr) minmax(0, 1.35fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: var(--white);
}

.slider-admin-list img {
  width: 150px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: var(--soft);
}

.slider-admin-list strong,
.slider-admin-list span,
.slider-admin-list small {
  display: block;
}

.slider-admin-list strong {
  color: var(--navy);
}

.slider-admin-list span,
.slider-admin-list small {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.slider-inline-edit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.slider-inline-edit input,
.slider-inline-edit select,
.slider-inline-edit textarea,
.slider-inline-edit button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--white);
  font-size: 12px;
}

.slider-inline-edit textarea {
  grid-column: 1 / -2;
}

.slider-inline-edit button {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
  font-weight: 800;
}

.reviewer-public-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.reviewer-public-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.reviewer-public-card > p,
.reviewer-public-card > a {
  grid-column: 1 / -1;
}

.reviewer-public-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.reviewer-admin-list {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  background: #fbfdfe;
}

.reviewer-management-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.reviewer-management-summary article {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fbfdff;
}

.reviewer-management-summary strong,
.reviewer-management-summary span {
  display: block;
}

.reviewer-management-summary strong {
  color: var(--navy);
  font-size: 24px;
}

.reviewer-management-summary span {
  color: var(--muted);
  font-size: 13px;
}

.reviewer-create-form {
  margin-bottom: 16px;
}

.reviewer-admin-list article {
  display: grid;
  grid-template-columns: 74px minmax(200px, 0.55fr) minmax(0, 1.45fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: var(--white);
}

.reviewer-admin-list img,
.reviewer-admin-list .avatar {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.reviewer-admin-list strong,
.reviewer-admin-list span,
.reviewer-admin-list small {
  display: block;
}

.reviewer-admin-list strong {
  color: var(--navy);
}

.reviewer-admin-list span,
.reviewer-admin-list small {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.reviewer-inline-edit {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.reviewer-inline-edit input,
.reviewer-inline-edit select,
.reviewer-inline-edit textarea,
.reviewer-inline-edit button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--white);
  font-size: 12px;
}

.reviewer-inline-edit textarea {
  grid-column: 1 / -2;
}

.reviewer-inline-edit button {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
  font-weight: 800;
}

@media (max-width: 980px) {
  .auth-card--minimal,
  .portal-shell,
  .article-detail-layout {
    grid-template-columns: 1fr;
  }

  .auth-card--minimal > .auth-brand--center {
    min-height: auto;
    border-right: 0;
    padding: 20px;
  }

  .auth-card--minimal > .auth-brand--center img {
    width: 118px;
    height: 76px;
  }

  .portal-sidebar {
    position: static;
    min-height: auto;
  }

  .portal-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-card {
    grid-column: 1 / -1;
  }

  .module-grid,
  .module-guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-admin-list article,
  .board-inline-edit,
  .slider-admin-list article,
  .slider-inline-edit,
  .reviewer-admin-list article,
  .reviewer-inline-edit,
  .reviewer-public-grid {
    grid-template-columns: 1fr;
  }

  .board-inline-edit textarea,
  .slider-inline-edit textarea,
  .reviewer-inline-edit textarea {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .auth-shell--minimal {
    padding: 12px;
  }

  .auth-card--minimal .auth-login-panel {
    padding: 22px;
  }

  .auth-form--register,
  .portal-stats,
  .module-grid,
  .module-guide-list,
  .reviewer-desk {
    grid-template-columns: 1fr;
  }

  .auth-form--register label:nth-of-type(5),
  .auth-form--register label:nth-of-type(6),
  .auth-form--register button {
    grid-column: auto;
  }

  .portal-topbar {
    align-items: stretch;
  }

  .portal-topbar nav {
    width: 100%;
    justify-content: space-between;
  }

  .portal-sidebar {
    grid-template-columns: 1fr;
  }

  .portal-hero-actions,
  .article-detail-actions {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero {
    overflow: hidden;
    padding: 34px 0 24px;
  }

  .hero .container,
  .hero__grid,
  .hero__copy,
  .hero__media {
    max-width: 100%;
    min-width: 0;
  }

  .hero .container {
    width: calc(100% - 28px);
  }

  .hero__grid,
  .hero__copy,
  .hero__media {
    width: 100%;
  }

  .hero__copy,
  .hero__media,
  .hero__grid > .hero__feature-strip {
    grid-column: 1 / -1;
  }

  .hero__media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 0;
    justify-content: stretch;
  }

  .hero-slider {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero__copy h1,
  .hero__copy p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero__copy h1 {
    font-size: 27px;
  }

  .hero-slider__viewport {
    aspect-ratio: 16 / 8.2;
    min-height: 0;
  }

  .hero-slide {
    padding: 0;
  }

  .hero-slide__image {
    min-height: 100%;
  }

  .hero-slide__image img {
    max-height: none;
  }

  .hero-slide__content strong {
    font-size: 18px;
  }

  .hero-slide__content p {
    display: none;
  }

  .hero__feature-strip {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 18px 0 0;
  }

  .hero__feature-strip article {
    display: block;
    min-height: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
    padding: 13px;
  }

  .hero__feature-strip .icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    font-size: 10px;
  }

  .hero__feature-strip strong {
    font-size: 12px;
  }

  .hero__feature-strip small {
    font-size: 11px;
  }
}

/* Final CMS dashboard mobile support overrides */
.portal-brand img {
  width: 84px;
  height: 48px;
  object-fit: cover;
  object-position: left center;
}

.module-hub {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.module-category .module-grid {
  margin: 0;
}

.module-guide-list,
.template-guide {
  display: grid;
}

@media (min-width: 761px) {
  .module-guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-guide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .portal-topbar {
    height: auto !important;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px !important;
  }

  .portal-brand {
    flex: 1 1 100%;
  }

  .portal-brand img {
    width: 78px;
    height: 46px;
  }

  .portal-topbar nav {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .portal-topbar nav a {
    justify-content: center;
    width: 100%;
  }

  .portal-topbar nav a:last-child {
    color: #ffffff;
    background: var(--navy);
  }

  .portal-shell {
    display: block !important;
  }

  .portal-sidebar {
    position: sticky;
    top: 118px;
    display: flex !important;
    min-height: auto !important;
    overflow-x: auto;
    padding: 10px 14px !important;
  }

  .portal-sidebar .user-card {
    display: none;
  }

  .portal-sidebar a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .portal-main {
    padding: 14px !important;
  }

  .module-grid,
  .module-guide-list,
  .template-guide,
  .portal-stats {
    grid-template-columns: 1fr !important;
  }

  .template-actions .button,
  .portal-hero-actions .button {
    width: 100%;
  }
}

/* Article listing and citation tools */
.article-list .article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 16px 22px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(5, 28, 57, 0.04);
}

.article-list .article-card__body {
  display: block;
  min-width: 0;
}

.article-card__type {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.article-card__body h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.28;
}

.article-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.article-list .article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 12px;
}

.article-list .article-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.article-list .article-card__actions {
  display: grid;
  gap: 9px;
  justify-content: stretch;
}

.article-list .article-card__actions a,
.article-list .article-card__actions .article-coming-soon,
.article-citation summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 12px;
  color: var(--navy);
  background: var(--white);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.article-list .article-card__actions a:first-child {
  border-color: rgba(0, 150, 143, 0.25);
  background: rgba(0, 150, 143, 0.1);
  color: var(--teal-dark);
}

.article-list .article-card__actions .article-coming-soon,
.archive-coming-soon {
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--soft);
  font-size: 13px;
  font-weight: 850;
}

.archive-coming-soon {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 10px;
}

.article-citation {
  grid-column: 1 / -1;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.article-citation summary {
  width: fit-content;
  cursor: pointer;
}

.article-list .citation-list {
  display: grid;
  gap: 10px;
  justify-content: stretch;
  margin-top: 12px;
}

.article-list .citation-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 78px;
  gap: 12px;
  align-items: start;
  justify-content: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.article-list .citation-row strong {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.article-list .citation-row code {
  overflow-wrap: anywhere;
  white-space: normal;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.article-list .citation-row button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: var(--navy);
  font-weight: 850;
  cursor: pointer;
}

.article-template-header {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.article-template-header img {
  width: 112px;
  height: 82px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: #ffffff;
}

@media (max-width: 860px) {
  .article-list .article-card {
    grid-template-columns: 1fr;
  }

  .article-list .article-card__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-list .citation-row {
    grid-template-columns: 1fr;
  }

  .article-list .citation-row button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .section-heading-row {
    align-items: stretch;
  }

  .filter-tools {
    width: 100%;
    flex-direction: column;
  }

  .article-list .article-card {
    padding: 18px;
  }

  .article-card__body h3 {
    font-size: 18px;
  }

  .article-list .article-card__actions {
    grid-template-columns: 1fr;
  }

  .article-template-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

.article-template-header img {
    justify-self: center;
  }
}

/* Finance expansion and corporate login polish */
.auth-shell--minimal {
  display: grid;
  align-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 14% 12%, rgba(0, 150, 143, 0.18), transparent 26%),
    linear-gradient(135deg, #f7fbfc 0%, #e9f3f5 100%);
}

.auth-card--minimal {
  width: min(980px, 100%);
  min-height: 620px;
  grid-template-columns: 0.95fr 1fr;
  border: 1px solid rgba(6, 31, 66, 0.08);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(6, 31, 66, 0.11);
}

.auth-card--minimal > .auth-brand--center {
  justify-content: center;
  padding: 56px 44px;
  background: #001b35;
}

.auth-card--minimal > .auth-brand--center::after {
  display: none;
}

.auth-card--minimal > .auth-brand--center img {
  width: min(360px, 88%);
  max-height: 175px;
  margin: 0;
  border: 0;
  border-radius: 0;
  clip-path: inset(2px);
  box-shadow: none;
  background: transparent;
  object-fit: contain;
}

.auth-card--minimal > .auth-brand--center span {
  display: none;
}

.auth-card--minimal .auth-login-panel {
  display: grid;
  align-content: center;
  padding: 46px;
}

.finance-create-form {
  margin-bottom: 18px;
}

.gateway-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.gateway-status.is-ready {
  color: #05605d;
  background: rgba(0, 150, 143, 0.12);
}

.gateway-status.is-missing {
  color: #8a4b00;
  background: #fff4d8;
}

.document-pay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 8px;
  background: #008f8b;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.document-body--payment {
  display: grid;
  gap: 14px;
}

.document-status-strip {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #dbe6ec;
  background: #f7fbfc;
}

.document-status-strip strong {
  color: #0a2142;
  font-size: 15px;
}

.document-status-strip span,
.document-note {
  color: #60707f;
  font-size: 14px;
  line-height: 1.55;
}

.document-status-strip.is-due {
  border-color: rgba(0, 150, 143, 0.28);
  background: rgba(0, 150, 143, 0.08);
}

.document-status-strip.is-paid {
  border-color: rgba(0, 143, 139, 0.34);
  background: rgba(0, 143, 139, 0.12);
}

@media (max-width: 760px) {
  .auth-shell--minimal {
    padding: 14px;
  }

  .auth-card--minimal {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .auth-card--minimal > .auth-brand--center {
    min-height: 220px;
    padding: 32px 22px;
  }

  .auth-card--minimal > .auth-brand--center img {
    width: min(230px, 78%);
    margin-bottom: 14px;
  }

  .auth-card--minimal > .auth-brand--center span {
    font-size: 18px;
  }

  .auth-card--minimal .auth-login-panel {
    padding: 24px;
  }
}

@media (max-width: 980px) {
  .finance-report-head,
  .document-title {
    align-items: stretch;
  }

  .finance-kpi-grid,
  .finance-mini-reports,
  .report-kpi-grid,
  .report-columns,
  .report-columns--two,
  .audit-focus-grid,
  .reviewer-management-summary {
    grid-template-columns: 1fr;
  }

  .report-sheet .document-header {
    grid-template-columns: 1fr;
  }

  .report-actions a,
  .report-filter input,
  .report-filter select,
  .report-filter button {
    width: 100%;
  }

  .danger-inline-form {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .danger-inline-form button {
    width: 100%;
  }
}

/* Footer cleanup: single publisher-free footer, stable desktop/mobile layout. */
.site-footer .footer__grid {
  grid-template-columns: minmax(230px, 1.05fr) repeat(4, minmax(142px, 0.75fr));
  gap: 24px;
  align-items: start;
  padding: 28px 0 22px;
}

.site-footer .footer__grid h3 {
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0;
}

.site-footer .footer__grid p,
.site-footer .footer__grid a {
  margin-bottom: 5px;
  font-size: 12.5px;
  line-height: 1.38;
}

.site-footer .footer__brand img {
  width: min(140px, 100%);
  max-height: 96px;
  object-fit: contain;
}

.site-footer .footer__brand p {
  max-width: 300px;
  margin-bottom: 10px;
}

.site-footer .social-row {
  gap: 7px;
  margin-top: 10px;
}

.site-footer .social-row a,
.site-footer .social-row button {
  width: 28px;
  height: 28px;
}

.site-footer .footer__publisher {
  display: none !important;
}

.site-footer .footer-contact p {
  max-width: none;
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.site-footer .footer-company {
  display: block;
}

.site-footer .footer-company-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer .footer-company-link:hover {
  color: #5ee0d6;
}

.site-footer .footer-company span:first-child {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.site-footer .footer-company span + span {
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 500;
}

.site-footer .footer-collaboration {
  margin: 3px 0 9px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.site-footer .footer-contact a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin: 0;
  max-width: 100%;
  overflow-wrap: normal;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  white-space: nowrap;
}

.site-footer .footer-contact a svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: #5ee0d6;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer .footer-contact a span {
  min-width: 0;
}

.site-footer .footer-contact a:hover {
  color: #5ee0d6;
}

.site-footer .footer__bottom {
  align-items: center;
  padding: 12px 0;
  font-size: 11.5px;
}

@media (max-width: 980px) {
  .site-footer .footer__grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 18px 22px;
  }

  .site-footer .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer .footer__grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 0 18px;
  }

  .site-footer .footer__brand img {
    width: 132px;
  }

  .site-footer .footer__grid p,
  .site-footer .footer__grid a {
    margin-bottom: 4px;
  }

  .site-footer .footer-contact p,
  .site-footer .footer-contact a {
    margin-bottom: 0;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .site-footer .footer-collaboration {
    margin: 2px 0 8px;
    font-size: 10.5px;
  }

  .site-footer .footer-contact a {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .site-footer .social-row {
    margin-top: 8px;
  }

  .site-footer .footer__bottom {
    gap: 8px;
    padding: 12px 0;
    text-align: left;
  }
}

.fact-card--logo img {
  display: block;
  width: 96px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 8px;
}

.site-footer .footer__standards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 0 0;
}

.site-footer .footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.035);
}

.site-footer .footer-badge img {
  width: 68px;
  max-height: 26px;
  object-fit: contain;
  padding: 3px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
}

.site-footer .footer-badge strong,
.site-footer .footer-badge span {
  display: block;
}

.site-footer .footer-badge strong {
  color: var(--white);
  font-size: 13px;
  line-height: 1.1;
}

.site-footer .footer-badge span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.2;
}

.site-footer .footer__bottom a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

@media (max-width: 560px) {
  .site-footer .footer__standards {
    display: grid;
  }

  .site-footer .footer-badge {
    justify-content: flex-start;
  }
}

/* CMS module polish */
.portal-page .module-hub {
  gap: 14px;
}

.portal-page .module-category {
  padding: 14px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(9, 43, 87, 0.035);
}

.portal-page .module-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 0;
}

.portal-page .module-card {
  min-height: 124px;
  gap: 6px;
  border-radius: 9px;
  padding: 14px;
  box-shadow: none;
}

.portal-page .module-card > span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.portal-page .module-card strong {
  font-size: 15px;
}

.portal-page .module-card small {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portal-page .module-card em {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
  font-style: normal;
}

.portal-page .module-card em b {
  border-radius: 999px;
  padding: 3px 7px;
  color: #08736f;
  background: #e8f6f5;
  font-size: 10px;
  line-height: 1.2;
}

.portal-page .module-guide {
  padding: 0;
}

.portal-page .module-guide summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 16px 20px;
  list-style: none;
}

.portal-page .module-guide summary::-webkit-details-marker {
  display: none;
}

.portal-page .module-guide summary strong,
.portal-page .module-guide summary small {
  display: block;
}

.portal-page .module-guide summary strong {
  color: var(--navy);
}

.portal-page .module-guide summary small {
  margin-top: 3px;
  color: var(--muted);
}

.portal-page .module-guide summary::after {
  content: "Open";
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--teal);
  background: #e8f6f5;
  font-size: 12px;
  font-weight: 900;
}

.portal-page .module-guide[open] summary::after {
  content: "Close";
}

.template-admin-panel {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.panel-heading--compact {
  margin-bottom: 12px;
}

.panel-heading--compact h3 {
  margin: 0 0 4px;
  color: var(--navy);
}

.template-note-list {
  display: grid;
  gap: 10px;
  padding: 18px 22px;
  background: #fbfdfe;
}

.template-note-list article {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.4fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  background: #fff;
}

.template-note-list strong,
.template-note-list span,
.template-note-list p,
.template-note-list a {
  display: block;
}

.template-note-list strong {
  color: var(--navy);
}

.template-note-list span,
.template-note-list p {
  color: var(--muted);
  font-size: 12px;
}

.template-note-list a {
  margin-top: 6px;
  color: var(--teal);
  font-weight: 900;
  font-size: 12px;
}

.publication-admin-list .danger-inline-form,
.slider-admin-list .danger-inline-form,
.inline-action-group,
.template-note-list .danger-inline-form {
  grid-column: auto;
  justify-self: end;
}

.inline-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-action-group form,
.user-table .danger-inline-form {
  margin: 0;
}

.danger-inline-form button {
  border-color: #fecaca;
  color: #991b1b;
  background: #fff5f5;
}

.caj-chatbot {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  font-family: Inter, system-ui, sans-serif;
}

.caj-chatbot__toggle {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(0, 143, 139, 0.25);
  border-radius: 999px;
  padding: 10px 14px 10px 10px;
  color: #fff;
  background: #082044;
  box-shadow: 0 18px 40px rgba(8, 32, 68, 0.24);
  font-weight: 900;
  cursor: pointer;
}

.caj-chatbot__toggle img,
.caj-chatbot__header img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}

.caj-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid #d9e6ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 32, 68, 0.24);
}

.caj-chatbot__header {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  color: #fff;
  background: #082044;
}

.caj-chatbot__header div {
  flex: 1;
}

.caj-chatbot__header strong,
.caj-chatbot__header span {
  display: block;
}

.caj-chatbot__header span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.caj-chatbot__header button {
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.caj-chatbot__lang {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 12px 0;
}

.caj-chatbot__lang button,
.caj-chatbot__quick button {
  border: 1px solid #d9e6ec;
  border-radius: 999px;
  padding: 7px 10px;
  color: #0a2142;
  background: #f7fbfc;
  font-weight: 800;
  cursor: pointer;
}

.caj-chatbot__lang button.is-active {
  color: #fff;
  border-color: #008f8b;
  background: #008f8b;
}

.caj-chatbot__messages {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
}

.caj-chatbot__message {
  max-width: 88%;
  border-radius: 13px;
  padding: 9px 11px;
  font-size: 13px;
  line-height: 1.45;
}

.caj-chatbot__message.is-bot {
  justify-self: start;
  color: #344256;
  background: #eef7f7;
}

.caj-chatbot__message.is-user {
  justify-self: end;
  color: #fff;
  background: #0a2142;
}

.caj-chatbot__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 12px;
}

.caj-chatbot__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-top: 1px solid #e6eef2;
  padding: 12px;
}

.caj-chatbot__form input {
  min-width: 0;
  border: 1px solid #d9e6ec;
  border-radius: 10px;
  padding: 10px 11px;
}

.caj-chatbot__form button {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  background: #008f8b;
  font-weight: 900;
}

@media (max-width: 980px) {
  .template-note-list article {
    grid-template-columns: 1fr;
  }

  .publication-admin-list .danger-inline-form,
  .slider-admin-list .danger-inline-form,
  .inline-action-group,
  .template-note-list .danger-inline-form {
    justify-self: stretch;
  }

  .inline-action-group {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .caj-chatbot {
    right: 14px;
    bottom: 14px;
  }

  .caj-chatbot__toggle span {
    display: none;
  }

  .caj-chatbot__panel {
    right: -4px;
    bottom: 56px;
  }
}

/* CAJ Assistant compact fix */
.caj-chatbot {
  width: auto;
  max-width: calc(100vw - 24px);
}

.caj-chatbot__toggle {
  width: 54px;
  height: 54px;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
}

.caj-chatbot__toggle span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.caj-chatbot__toggle img {
  display: block;
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  padding: 2px;
  border-radius: 8px;
  object-fit: contain;
}

.caj-chatbot__header img {
  display: block;
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  padding: 2px;
  border-radius: 8px;
  object-fit: contain;
}

.caj-chatbot__panel {
  width: 340px;
  max-width: calc(100vw - 28px);
  border-radius: 14px;
}

@media (max-width: 560px) {
  .caj-chatbot__toggle {
    width: 50px;
    height: 50px;
  }

  .caj-chatbot__toggle img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
  }
}

/* Emergency clamp: prevent oversized chatbot favicon on cached/global image rules */
.caj-chatbot,
.caj-chatbot * {
  box-sizing: border-box;
}

.caj-chatbot img {
  display: inline-block !important;
  object-fit: contain !important;
  flex: 0 0 auto !important;
}

.caj-chatbot > .caj-chatbot__toggle {
  min-width: 48px !important;
  max-width: 48px !important;
  width: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  height: 48px !important;
  overflow: hidden !important;
}

.caj-chatbot > .caj-chatbot__toggle img {
  min-width: 26px !important;
  max-width: 26px !important;
  width: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  height: 26px !important;
}

/* Footer logo dark-background fit */
.site-footer .footer__brand img {
  display: block !important;
  width: min(158px, 100%) !important;
  max-width: 158px !important;
  max-height: 76px !important;
  object-fit: contain !important;
  object-position: left center;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.site-footer .footer-badge img {
  width: auto !important;
  max-width: 68px !important;
  height: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  padding: 2px 4px !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

@media (max-width: 560px) {
  .site-footer .footer__brand img {
    margin-inline: auto;
    max-width: 142px !important;
    max-height: 70px !important;
    object-position: center;
  }
}

/* Authentication branding: blend the compact CAJ lockup into the navy panel. */
.auth-card--minimal > .auth-brand--center {
  background: #061f42 !important;
}

.auth-card--minimal > .auth-brand--center img {
  display: block !important;
  width: min(300px, 82%) !important;
  max-width: 300px !important;
  height: auto !important;
  max-height: 145px !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
  object-fit: contain !important;
}

@media (max-width: 760px) {
  .auth-card--minimal > .auth-brand--center {
    min-height: 180px !important;
    padding: 28px 20px !important;
  }

  .auth-card--minimal > .auth-brand--center img {
    width: min(230px, 76%) !important;
    max-height: 112px !important;
  }
}

/* Module-based CMS sidebar */
.portal-shell {
  grid-template-columns: 278px minmax(0, 1fr) !important;
  transition: grid-template-columns 180ms ease;
}

.portal-sidebar__head,
.portal-sidebar-backdrop {
  display: none;
}

.portal-menu-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(6, 31, 66, 0.12);
  border-radius: 10px;
  color: var(--navy);
  background:
    linear-gradient(135deg, rgba(69, 210, 202, 0.14), rgba(255, 255, 255, 0.95));
  box-shadow: 0 10px 24px rgba(6, 31, 66, 0.08);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.portal-menu-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(19, 187, 178, 0.42);
  background: #ffffff;
}

.portal-menu-toggle .portal-nav-icon {
  width: 21px;
  height: 21px;
  color: currentColor;
}

.portal-sidebar {
  top: 62px !important;
  display: flex !important;
  height: calc(100vh - 62px);
  min-height: 0 !important;
  flex-direction: column;
  gap: 14px !important;
  overflow: hidden;
  padding: 18px 14px 16px !important;
  background: #061f42 !important;
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.06);
}

.portal-sidebar .user-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 !important;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px !important;
  background: rgba(255, 255, 255, 0.065);
}

.user-card__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(62, 209, 201, 0.38);
  border-radius: 8px;
  color: #ffffff !important;
  background: rgba(19, 187, 178, 0.16);
  font-size: 13px !important;
  font-weight: 800;
}

.user-card__avatar--photo {
  object-fit: cover;
}

.user-card__details {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.user-card__details .user-card__label {
  color: #45d2ca !important;
  font-size: 9px !important;
  letter-spacing: 0.06em;
}

.user-card__details strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card__details span:not(.user-card__label) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10.5px;
}

.user-card__details small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-sidebar__nav {
  display: grid;
  min-height: 0;
  gap: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  scrollbar-width: thin;
}

.portal-nav-group {
  display: grid;
  gap: 3px;
  margin-top: 7px;
}

.portal-nav-group h2 {
  margin: 0;
  padding: 7px 10px 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.portal-nav-group--account {
  margin-top: 10px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.portal-sidebar .portal-nav-link {
  position: relative;
  display: grid !important;
  min-height: 39px !important;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px !important;
  padding: 7px 10px !important;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px !important;
  font-weight: 650;
  line-height: 1.25;
}

.portal-sidebar .portal-nav-link:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.065);
}

.portal-sidebar .portal-nav-link.is-current {
  border-color: rgba(69, 210, 202, 0.28);
  color: #ffffff;
  background: rgba(19, 187, 178, 0.18);
}

.portal-sidebar .portal-nav-link.is-current::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -1px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #45d2ca;
  content: "";
}

.portal-nav-icon {
  width: 18px;
  height: 18px;
  color: rgba(107, 224, 216, 0.8);
  flex: 0 0 auto;
}

.portal-sidebar .portal-nav-link.is-current .portal-nav-icon {
  color: #6be0d8;
}

@media (min-width: 761px) {
  .portal-sidebar-collapsed .portal-shell {
    grid-template-columns: 82px minmax(0, 1fr) !important;
  }

  .portal-sidebar-collapsed .portal-sidebar {
    padding-inline: 11px !important;
  }

  .portal-sidebar-collapsed .portal-sidebar .user-card {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 10px 8px !important;
  }

  .portal-sidebar-collapsed .user-card__details,
  .portal-sidebar-collapsed .portal-nav-group h2,
  .portal-sidebar-collapsed .portal-nav-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .portal-sidebar-collapsed .portal-nav-group {
    margin-top: 5px;
  }

  .portal-sidebar-collapsed .portal-nav-group--account {
    padding-top: 9px;
  }

  .portal-sidebar-collapsed .portal-sidebar .portal-nav-link {
    min-height: 44px !important;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 8px !important;
  }

  .portal-sidebar-collapsed .portal-sidebar .portal-nav-link.is-current::before {
    top: 9px;
    bottom: 9px;
  }

  .portal-sidebar-collapsed .portal-nav-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 760px) {
  .portal-topbar {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .portal-menu-toggle {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
  }

  .portal-brand {
    flex: initial !important;
    min-width: 0;
  }

  .portal-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-topbar nav {
    grid-column: 1 / -1;
  }

  .portal-shell {
    display: block !important;
  }

  .portal-sidebar {
    position: fixed !important;
    z-index: 80;
    top: 0 !important;
    bottom: 0;
    left: 0;
    width: min(294px, 86vw);
    height: 100vh;
    padding: 14px !important;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .portal-sidebar-open {
    overflow: hidden;
  }

  .portal-sidebar-open .portal-sidebar {
    transform: translateX(0);
  }

  .portal-sidebar__head {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 0 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }

  .portal-sidebar__head button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }

  .portal-sidebar__head .portal-nav-icon {
    color: currentColor;
  }

  .portal-sidebar .user-card {
    display: grid !important;
  }

  .portal-sidebar__nav {
    padding-bottom: 22px;
  }

  .portal-sidebar .portal-nav-link {
    white-space: normal !important;
  }

  .portal-sidebar-backdrop {
    position: fixed;
    z-index: 70;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(3, 16, 35, 0.5);
    backdrop-filter: blur(2px);
  }

  .portal-sidebar-open .portal-sidebar-backdrop {
    display: block;
  }
}

/* Account profiles, international payment settings and trust footer */
.profile-settings-form {
  display: grid;
  gap: 18px;
}

.profile-settings-form fieldset {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfdfe;
}

.profile-settings-form legend {
  padding: 0 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.profile-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-field-grid label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.profile-field-grid .span-2 {
  grid-column: 1 / -1;
}

.profile-field-grid input,
.profile-field-grid textarea {
  width: 100%;
}

.profile-photo-block {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f5fafb;
}

.profile-photo-block > img,
.profile-photo-block > span:first-child {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 8px;
  object-fit: cover;
  color: #ffffff;
  background: var(--navy);
  font-weight: 800;
}

.profile-photo-block > div {
  display: grid;
  gap: 5px;
}

.profile-photo-block small,
.private-fieldset > p,
.activation-row small {
  color: var(--muted);
  font-size: 12px;
}

.privacy-chip {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  color: #075d59;
  background: #e7f5f4;
  font-size: 11px;
  font-weight: 800;
}

.private-fieldset {
  border-color: rgba(0, 143, 139, 0.24) !important;
  background: rgba(0, 143, 139, 0.035) !important;
}

.check-row,
.activation-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.check-row input,
.activation-row input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.activation-row {
  border: 1px solid rgba(0, 143, 139, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(0, 143, 139, 0.06);
}

.activation-row span {
  display: grid;
  gap: 3px;
}

.security-notice {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  border-left: 4px solid var(--teal);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--navy);
  background: #eef8f8;
}

.transfer-instructions {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 143, 139, 0.24);
  border-radius: 8px;
  padding: 18px;
  background: #f4fbfb;
}

.transfer-instructions h3 {
  margin: 10px 0 5px;
  color: var(--navy);
}

.transfer-instructions p,
.transfer-instructions small {
  margin: 0;
  color: var(--muted);
}

.transfer-instructions dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.transfer-instructions dl div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #ffffff;
}

.transfer-instructions dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.transfer-instructions dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.transfer-procedure {
  border-left: 3px solid var(--teal);
  padding-left: 12px;
  line-height: 1.6;
}

.security-notice span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-user-profile-form {
  margin-bottom: 20px;
  border: 1px solid rgba(0, 143, 139, 0.25);
  border-radius: 8px;
  padding: 18px;
  background: #f7fbfc;
}

.user-edit-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 11px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.site-footer .footer__standards {
  justify-content: flex-start;
}

.site-footer .footer-badge--ssl svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  color: #45d2ca;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer .footer-badge--ssl > span {
  color: rgba(255, 255, 255, 0.68);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal-links a {
  margin: 0 !important;
}

.disclaimer-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 2fr);
  gap: 30px;
  align-items: start;
}

.disclaimer-summary {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 8px;
  border-left: 4px solid var(--teal);
  padding: 18px;
  background: var(--soft);
}

.disclaimer-summary span,
.disclaimer-summary p,
.disclaimer-content p {
  color: var(--muted);
}

.disclaimer-summary p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.disclaimer-content {
  display: grid;
  gap: 0;
}

.disclaimer-content article {
  border-bottom: 1px solid var(--line);
  padding: 0 0 22px;
  margin-bottom: 22px;
}

.disclaimer-content h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.disclaimer-content p {
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .profile-field-grid,
  .disclaimer-layout {
    grid-template-columns: 1fr;
  }

  .profile-field-grid .span-2 {
    grid-column: auto;
  }

  .profile-photo-block {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .profile-photo-block > img,
  .profile-photo-block > span:first-child {
    width: 68px;
    height: 68px;
  }

  .profile-photo-block .check-row {
    grid-column: 1 / -1;
  }

  .disclaimer-summary {
    position: static;
  }

  .footer-legal-links {
    display: grid;
    gap: 5px;
  }

  .transfer-instructions dl {
    grid-template-columns: 1fr 1fr;
  }
}

/* Branded journal facts, subscription contrast and article navigation. */
.fact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 4px solid var(--fact-accent, var(--teal));
  background: var(--fact-bg, #eef8f8);
  box-shadow: 0 10px 28px rgba(6, 31, 66, .06);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.fact-card::before {
  position: absolute;
  top: -54px;
  right: -52px;
  z-index: -1;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--fact-glow, rgba(0, 143, 138, .12));
  content: "";
  transition: transform .35s ease, opacity .35s ease;
}

.fact-card:nth-child(1) { --fact-accent:#008f8a; --fact-bg:linear-gradient(145deg,#eefaf9,#ffffff); --fact-glow:rgba(0,143,138,.16); }
.fact-card:nth-child(2) { --fact-accent:#0c5f9c; --fact-bg:linear-gradient(145deg,#eef6fc,#ffffff); --fact-glow:rgba(12,95,156,.15); }
.fact-card:nth-child(3) { --fact-accent:#7a2b91; --fact-bg:linear-gradient(145deg,#f7f0fa,#ffffff); --fact-glow:rgba(122,43,145,.14); }
.fact-card:nth-child(4) { --fact-accent:#f28a1b; --fact-bg:linear-gradient(145deg,#fff7ec,#ffffff); --fact-glow:rgba(242,138,27,.17); }
.fact-card:nth-child(5) { --fact-accent:#0a6f74; --fact-bg:linear-gradient(145deg,#eef9f8,#ffffff); --fact-glow:rgba(10,111,116,.14); }

.fact-card > * { position: relative; z-index: 1; }
.fact-card__icon { background: color-mix(in srgb, var(--fact-accent) 13%, white); color: var(--fact-accent); transition: transform .24s ease, box-shadow .24s ease; }
.fact-card__icon--scholar {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}
.fact-card__icon--scholar img {
  width: 62px;
  max-width: 62px;
  height: 24px;
  max-height: 24px;
  object-fit: contain;
  object-position: center;
}
.fact-card__icon--issn {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
}
.fact-card__icon--issn img {
  width: 58px;
  max-width: 58px;
  height: 58px;
  max-height: 58px;
  object-fit: contain;
  object-position: center;
}
.fact-card__icon--scopus {
  display: grid;
  place-items: center;
  width: 104px;
  height: 44px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(6,31,66,.08);
}
.fact-card__icon--scopus img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.fact-card__icon--doi {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
}
.fact-card__icon--doi img {
  width: 60px;
  max-width: 60px;
  height: 60px;
  max-height: 60px;
  object-fit: contain;
  object-position: center;
}
.fact-card--logo img { transition: transform .24s ease; }
.fact-card:hover { transform: translateY(-6px); border-color: var(--fact-accent); box-shadow: 0 20px 42px rgba(6,31,66,.14); }
.fact-card:hover::before { transform: scale(1.25) translate(-8px,8px); }
.fact-card:hover .fact-card__icon,
.fact-card:hover.fact-card--logo img { transform: translateY(-2px) scale(1.06); }
.fact-card a { display: inline-flex; align-items: center; gap: 6px; }
.fact-card a::after { content: "→"; transition: transform .2s ease; }
.fact-card:hover a::after { transform: translateX(4px); }

.subscribe-card.subscribe-strip {
  border: 1px solid rgba(52,211,201,.3);
  border-left: 5px solid #13bbb2;
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, rgba(19,187,178,.2), transparent 30%),
    linear-gradient(120deg,#041b39,#082c59 70%,#075064);
  box-shadow: 0 18px 42px rgba(6,31,66,.18);
}

.subscribe-strip__eyebrow { color: #62e2d9; }
.subscribe-card.subscribe-strip h2 { color: #fff; }
.subscribe-card.subscribe-strip p { color: rgba(255,255,255,.78); }
.subscribe-card.subscribe-strip .inline-form { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.1); }
.subscribe-card.subscribe-strip .inline-form input { border: 1px solid rgba(255,255,255,.22); background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.subscribe-card.subscribe-strip .inline-form button { background: linear-gradient(135deg,#13bbb2,#008f8a); }
.subscribe-card.subscribe-strip .inline-form button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,143,138,.28); }

.news-detail__utility {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto 30px;
}

.news-detail__utility a,
.news-story-nav__archive {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--navy);
  background: #f7fafb;
  font-size: 11px;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.news-detail__utility a:hover,
.news-story-nav__archive:hover { transform: translateY(-2px); border-color: var(--teal); background: #edf9f8; }

.news-story-nav {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 16px;
  align-items: stretch;
  max-width: 980px;
  margin: 34px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.news-story-nav__previous,
.news-story-nav__next {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  background: linear-gradient(145deg,#f7fbfc,#fff);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.news-story-nav__next { text-align: right; }
.news-story-nav__previous span,
.news-story-nav__next span { color: var(--teal); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.news-story-nav__previous strong,
.news-story-nav__next strong { color: var(--navy); font-size: 12px; line-height: 1.4; }
.news-story-nav__previous:hover,
.news-story-nav__next:hover { transform: translateY(-3px); border-color: rgba(0,143,138,.45); box-shadow: 0 12px 28px rgba(6,31,66,.1); }
.news-story-nav__archive { align-self: center; white-space: nowrap; }

@media (max-width: 680px) {
  .fact-card:hover { transform: none; }
  .subscribe-card.subscribe-strip { padding: 22px 18px; }
  .news-detail__utility { margin-bottom: 24px; }
  .news-detail__utility a { padding: 8px 11px; font-size: 10px; }
  .news-story-nav { grid-template-columns: 1fr; }
  .news-story-nav__empty { display: none; }
  .news-story-nav__archive { justify-self: stretch; justify-content: center; grid-row: 3; }
  .news-story-nav__next { text-align: left; }
  .fact-card__icon--scopus { width: 88px; height: 38px; border-radius: 12px; }
  .fact-card__icon--scopus img { width: 100%; max-width: 100%; height: 100%; max-height: 100%; }
  .fact-card__icon--issn img { width: 46px; max-width: 46px; height: 46px; max-height: 46px; }
  .fact-card__icon--scholar img { width: 52px; max-width: 52px; height: 20px; max-height: 20px; }
  .fact-card__icon--doi img { width: 48px; max-width: 48px; height: 48px; max-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .fact-card,
  .fact-card::before,
  .fact-card__icon,
  .fact-card--logo img,
  .fact-card a::after,
  .news-detail__utility a,
  .news-story-nav a { transition: none !important; transform: none !important; }
}

/* Final CAJ Assistant logo sizing: overrides legacy favicon clamps. */
.caj-chatbot__toggle img,
.caj-chatbot__header img {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  object-fit: contain !important;
}

.caj-chatbot > .caj-chatbot__toggle img {
  min-width: 38px !important;
  max-width: 38px !important;
  width: 38px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  height: 24px !important;
}

.caj-chatbot__header > img {
  min-width: 82px !important;
  max-width: 82px !important;
  width: 82px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  height: 40px !important;
}

/* Final cascade lock for the branded metrics and embedded webmail surface. */
.metrics {
  position: relative;
  overflow: hidden;
  padding: 34px 0;
  background: radial-gradient(circle at 12% 20%,rgba(19,187,178,.13),transparent 25%),radial-gradient(circle at 88% 80%,rgba(12,95,156,.11),transparent 28%),linear-gradient(135deg,#edf8f8 0%,#f3f7fc 55%,#f8f4fb 100%);
}
.metrics__grid { gap:12px;border:0;background:transparent; }
.metrics__grid article { min-height:128px;border:1px solid color-mix(in srgb,var(--metric-accent) 24%,#dfe8ef);border-radius:14px;padding:29px 16px 22px;background:linear-gradient(145deg,color-mix(in srgb,var(--metric-accent) 9%,white),#fff 74%);box-shadow:0 14px 32px rgba(4,31,65,.07); }
.metrics__grid article:last-child { border-right:1px solid color-mix(in srgb,var(--metric-accent) 24%,#dfe8ef); }
.metrics__grid strong { color:var(--metric-accent);font-size:clamp(27px,2vw,36px); }
.metrics__grid span { display:block;max-width:170px;margin:10px auto 0;color:#50647c;font-size:12px;font-weight:700;line-height:1.4; }
.portal-panel.management-mail { padding:0;overflow:hidden;background:#f3f7fb; }
@media (max-width:720px){.metrics{padding:22px 0}.metrics__grid{grid-template-columns:repeat(2,1fr)}.metrics__grid article:last-child{grid-column:1/-1}}
@media (max-width:420px){.metrics__grid{grid-template-columns:1fr}.metrics__grid article:last-child{grid-column:auto}}
@media (max-width:720px){.webmail-app{min-height:0}.webmail-sidebar{min-height:0}}

/* Final footer standards strip: flat, centered, no separate cards. */
.site-footer .footer__standards {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.13);
  border-bottom: 1px solid rgba(255,255,255,.13);
  padding: 10px 0;
  text-align: center;
}

.site-footer .footer-badge {
  display: inline-flex !important;
  width: auto !important;
  min-height: 0 !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0 !important;
  border-right: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 0 !important;
  padding: 3px 22px !important;
  color: rgba(255,255,255,.76);
  background: transparent !important;
  box-shadow: none !important;
}

.site-footer .footer-badge:last-child {
  border-right: 0 !important;
}

.site-footer .footer-badge img {
  width: 58px !important;
  max-width: 58px !important;
  height: 24px !important;
  max-height: 24px !important;
  object-fit: contain;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.site-footer .footer-badge--scholar img {
  width: 92px !important;
  max-width: 92px !important;
  height: 24px !important;
  max-height: 24px !important;
}

.site-footer .footer-badge--ssl svg {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

.site-footer .footer-badge strong,
.site-footer .footer-badge span {
  display: inline !important;
  color: inherit;
  font-size: 11px !important;
  line-height: 1.2;
}

.site-footer .footer-badge strong {
  color: rgba(255,255,255,.92);
  font-weight: 800;
}

@media (max-width: 560px) {
  .site-footer .footer__standards {
    gap: 8px 0;
    justify-content: center;
    margin-top: 14px;
    padding: 12px 0;
  }

  .site-footer .footer-badge {
    padding: 4px 12px !important;
  }

  .site-footer .footer-badge img {
    width: 52px !important;
    max-width: 52px !important;
    height: 22px !important;
    max-height: 22px !important;
  }

  .site-footer .footer-badge--scholar img {
    width: 78px !important;
    max-width: 78px !important;
    height: 22px !important;
    max-height: 22px !important;
  }
}
