:root {
  --accent: #087d8f;
  --ink: #172b34;
  --muted: #677b83;
  --line: #dce5e8;
  --paper: #f5f8f9;
}
.editorial-photo{margin:24px 0}.editorial-photo figcaption,figcaption{font-size:.88rem;color:var(--muted);line-height:1.5;margin-top:8px}.breadcrumbs{font-size:.85rem;line-height:1.7;margin-bottom:20px}.editorial-label{font-weight:700;color:var(--accent)}.institutional-text{white-space:pre-wrap}.tiptap figure{margin:20px 0}.tiptap figcaption{min-height:1.5em}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    16px "DM Sans",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
h1,
h2,
h3,
.brand {
  font-family: Manrope, system-ui, sans-serif;
}
h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -1.5px;
}
h2 {
  letter-spacing: -0.5px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.secondary {
  background: #e7eef0;
  color: var(--ink);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd9de;
  background: white;
  color: var(--ink);
  border-radius: 7px;
  padding: 11px;
  margin-top: 7px;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 18px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #087d8f66;
  outline-offset: 2px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--muted);
}
.brand {
  font-weight: 800;
  font-size: 28px;
  color: var(--ink);
}
.brand span {
  display: inline-block;
  font:
    10px "DM Sans",
    sans-serif;
  background: #cdecef;
  color: #087d8f;
  padding: 5px 7px;
  border-radius: 5px;
  margin-left: 8px;
  vertical-align: middle;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  background: white;
  border-right: 1px solid var(--line);
  padding: 32px 22px;
}
.sidebar .eyebrow {
  margin-top: 44px;
}
.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--muted);
  padding: 13px 12px;
  font-size: 14px;
  margin: 5px 0;
}
.nav-item.active {
  background: #e2f2f3;
  color: #086d79;
}
.sidebar-bottom {
  position: absolute;
  bottom: 26px;
  left: 24px;
  right: 24px;
  font-size: 13px;
}
.main-panel {
  margin-left: 235px;
}
.admin-header {
  display: flex;
  align-items: center;
  gap: 24px;
  background: white;
  padding: 18px 38px;
  border-bottom: 1px solid var(--line);
}
.admin-header label {
  margin: 0;
  width: 260px;
  font-size: 11px;
  color: var(--muted);
}
.admin-header select {
  font-size: 14px;
}
.admin-header span {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}
.admin-header a {
  font-size: 13px;
}
.page-head {
  padding: 32px 38px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-head h1 {
  margin: 8px 0;
}
.stats {
  display: flex;
  gap: 14px;
  padding: 0 38px 24px;
  flex-wrap: wrap;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
  min-width: 155px;
}
.stat strong {
  font-size: 26px;
  display: block;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
#view {
  margin: 0 38px 40px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.toolbar input,
.toolbar select {
  margin: 0;
  width: auto;
  flex: 1;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 12px;
  border-bottom: 1px solid #eef2f4;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.badge {
  display: inline-block;
  border-radius: 20px;
  background: #edf2f4;
  padding: 5px 10px;
  font-size: 11px;
}
.badge.published {
  background: #e0f3e9;
  color: #1a6942;
}
.badge.scheduled {
  background: #e8e9fb;
  color: #4a4792;
}
.table-action {
  background: transparent;
  color: var(--accent);
  padding: 5px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  width: 1100px;
  max-width: 95vw;
  max-height: 94vh;
  padding: 26px;
  box-shadow: 0 25px 100px #0003;
}
dialog::backdrop {
  background: #0e263b80;
}
dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 30px;
}
.editor-grid aside {
  border-left: 1px solid var(--line);
  padding-left: 25px;
}
.code {
  font:
    13px ui-monospace,
    monospace;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400;
}
.check input {
  width: auto;
  margin: 0;
}
details {
  margin: 15px 0;
}
summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.login {
  max-width: 470px;
  margin: 9vh auto;
  background: white;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.login h1 {
  font-size: 42px;
}
.login p {
  color: var(--muted);
}
.login button {
  width: 100%;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 480px;
  background: #172b34;
  color: white;
  border-radius: 10px;
  padding: 18px 24px;
  z-index: 1000;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.media-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  word-break: break-word;
  font-size: 12px;
}
.media-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.network {
  padding: 12px 5%;
  background: #142c35;
  color: white;
  display: flex;
  gap: 25px;
  align-items: center;
}
.network a {
  color: #d1e4eb;
  font-size: 12px;
  margin-right: 15px;
}
.network details {
  margin: 0;
}
.network a[aria-current] {
  font-weight: 700;
  color: #fff;
}
.portal-header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 20px 5%;
  display: flex;
  align-items: center;
  gap: 30px;
  box-shadow: 0 2px 8px #0001;
}
.portal-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.public {
  max-width: 1200px;
  margin: 45px auto;
  padding: 0 24px;
}
.public form {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.public form input {
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cards article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.cards img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.cards h2,
.cards p {
  padding: 0 22px;
}
.cards h2 {
  font-size: 22px;
  color: var(--ink);
}
.cards p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  padding-bottom: 18px;
}
.reading {
  max-width: 800px;
  margin: auto;
  background: white;
  padding: 36px;
  border-radius: 12px;
  line-height: 1.8;
}
.reading h1 {
  line-height: 1.2;
}
.reading img {
  max-width: 100%;
  height: auto;
}
.byline {
  font-size: 13px;
  color: var(--muted);
}
.excerpt {
  font-size: 20px;
  color: var(--muted);
}
.cover {
  width: 100%;
  border-radius: 10px;
}
.fact-sheet {
  display: grid;
  grid-template-columns: 1fr 2fr;
  font-size: 14px;
}
.fact-sheet dt,
.fact-sheet dd {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
footer {
  padding: 35px 5%;
  background: #e7eef0;
  font-size: 13px;
  color: var(--muted);
}
footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
footer p {
  max-width: 1000px;
  line-height: 1.7;
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .sidebar {
    width: 190px;
    padding: 24px 12px;
  }
  .main-panel {
    margin-left: 190px;
  }
  .admin-header {
    padding: 16px;
    gap: 12px;
  }
  .admin-header span {
    display: none;
  }
  .page-head {
    padding: 24px 18px;
  }
  .stats {
    padding: 0 18px 20px;
  }
  #view {
    margin: 0 18px 24px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-grid aside {
    padding: 0;
    border: 0;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .portal-header {
    display: block;
  }
  .portal-header nav {
    margin-top: 15px;
  }
}
@media (max-width: 600px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .sidebar .brand {
    width: 100%;
  }
  .sidebar .eyebrow,
  .sidebar-bottom p {
    display: none;
  }
  .nav-item {
    width: auto;
    font-size: 11px;
    padding: 8px;
  }
  .sidebar-bottom {
    position: static;
  }
  .main-panel {
    margin: 0;
  }
  .admin-header {
    flex-wrap: wrap;
  }
  .admin-header label {
    width: 100%;
  }
  .page-head button {
    font-size: 12px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    min-width: 100px;
    padding: 12px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .reading {
    padding: 22px;
  }
  .network {
    align-items: flex-start;
  }
  .network details a {
    display: block;
    margin-top: 10px;
  }
  .login {
    margin: 24px 14px;
    padding: 26px;
  }
}
.visual-editor {
  min-height: 340px;
  border: 1px solid #ccd9de;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 18px;
  line-height: 1.8;
  background: white;
  overflow-wrap: anywhere;
}
.visual-editor:focus {
  outline: 2px solid #087d8f66;
}
.visual-editor img {
  max-width: 100%;
}
.editor-grid .toolbar {
  flex-wrap: wrap;
}
.editor-grid .toolbar button {
  font-size: 12px;
  padding: 9px 12px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f8f9;
  padding: 18px;
  border-radius: 8px;
}

.languages{display:flex;gap:1rem;max-width:1152px;margin:1rem auto;padding:0 1rem}.languages [aria-current]{font-weight:700;text-decoration:underline}
.rich-toolbar{display:flex;flex-wrap:wrap;gap:6px;position:sticky;top:0;background:#f6f8fa;padding:12px;border:1px solid var(--line);z-index:2;border-radius:6px 6px 0 0}
.sidebar{overflow-y:auto;display:flex;flex-direction:column}.sidebar>.nav-item,.sidebar>#content-nav{flex-shrink:0}.sidebar .eyebrow{margin-top:28px}.sidebar-bottom{position:static;margin-top:auto;padding-top:24px}.sidebar .nav-item{padding:10px 12px}
.term-options{max-height:240px;overflow-y:auto;margin:10px 0}.term-options [hidden]{display:none!important}#term-picker fieldset{min-width:0;margin-bottom:16px}#entry-tags{min-height:90px}
.rich-toolbar button{padding:7px 10px;font-size:12px}
.visual-editor .tiptap{min-height:430px;outline:none;padding:12px;line-height:1.8}
.tiptap img{max-width:100%;height:auto}.tiptap table{border-collapse:collapse}.tiptap td,.tiptap th{border:1px solid #c7d1da;padding:8px}.tiptap blockquote{border-left:4px solid var(--accent);margin-left:0;padding-left:20px}
.translation-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px;padding:12px;background:#f1f5f8;border-radius:8px}.translation-tabs .selected{background:var(--accent);color:white}
.language-pill{font-size:11px;padding:5px 7px;margin:2px}.date-note{font-size:12px;color:#4c626c;line-height:1.6}
#cover-preview{width:100%;height:auto;max-height:180px;object-fit:cover;margin:12px 0}#media-picker{width:1250px;max-width:96vw}#media-picker>header{display:flex;justify-content:space-between;align-items:center}
.media-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.media-layout .media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;align-content:start}
button.media-card{background:white;color:var(--ink);padding:0;border:1px solid var(--line);overflow:hidden;text-align:left}button.media-card img{width:100%;height:115px;object-fit:cover}button.media-card span{display:block;padding:8px;font-size:11px;overflow-wrap:anywhere}
.attachment-details{border:1px solid var(--line);padding:16px;border-radius:8px;align-self:start}.attachment-details>img{width:100%;max-height:220px;object-fit:contain}.attachment-details button{margin:4px 2px;font-size:12px}.attachment-details p{overflow-wrap:anywhere;font-size:12px}
.upload-zone{padding:22px;border:2px dashed #b9cbd6;border-radius:8px;margin-bottom:20px}.upload-zone.dragging{background:#e1f2ff;border-color:var(--accent)}.management-form{max-width:760px;margin-top:24px}.api-example{white-space:pre-wrap;overflow-wrap:anywhere;background:#172b34;color:#e5f2f7;padding:24px;border-radius:10px}
@media(max-width:800px){.media-layout{grid-template-columns:1fr}.attachment-details{order:-1}.rich-toolbar{position:static}#editor{padding:16px}.language-pill{display:block}}
@media(max-width:600px){.sidebar{flex-direction:row;overflow:visible}.sidebar-bottom{margin-top:0;width:100%}.sidebar>#content-nav{display:flex;flex-wrap:wrap;width:100%}.sidebar .nav-item{padding:8px}}

/* Portal header and article controls */
.portal-header{display:flex;gap:22px;padding:14px 5%;min-height:78px}
.portal-header .brand{flex-shrink:0}.portal-header .brand img{display:block;max-width:200px;width:auto;max-height:50px;height:auto}
.portal-header .header-links{flex:1;gap:22px;align-items:center;margin:0}
.portal-header details{margin:0}.portal-header summary{cursor:pointer;list-style:none;display:flex;gap:7px;align-items:center;font-size:20px}
.portal-header summary::-webkit-details-marker{display:none}.portal-header summary span{font-size:12px}
.mobile-menu[open] summary,.header-search[open] summary{color:var(--accent)}
.portal-header .mobile-menu nav{position:absolute;left:5%;top:100%;display:flex;flex-direction:column;gap:0;background:white;border:1px solid var(--line);box-shadow:0 12px 30px #0002;max-height:70vh;overflow:auto;min-width:240px;margin:0;padding:12px}
.mobile-menu nav a{padding:12px}.header-search form{position:absolute;right:5%;top:100%;background:white;border:1px solid var(--line);padding:20px;box-shadow:0 12px 30px #0002;width:min(400px,90vw)}
.header-gap{min-height:24px}.article-dates{font-size:13px;color:var(--muted);margin-top:0}.article-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:22px 0}
.article-actions a,.share-options a{font-size:12px;line-height:1.5;border:1px solid var(--line);background:#f4f8f9;padding:10px 12px;border-radius:8px;text-decoration:none}
.article-actions button{font-size:12px;padding:10px 12px}.share-options{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
#share-dialog,#correction-dialog{width:620px;max-width:94vw;line-height:1.6}
.public form[data-correction]{display:block;margin:0}.public form[data-correction] label{display:block;margin:14px 0}
.honeypot{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
.editorial-video{margin:24px 0}.editorial-video iframe,.editorial-video video{width:100%;aspect-ratio:16/9;border:0;border-radius:8px;background:#14212a}
.related{margin-top:40px;border-top:1px solid var(--line);padding-top:20px}.related h2{font-size:24px}
.related .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.related h3{font-size:17px;line-height:1.4;padding:0 14px}
.reading .related img{width:100%;height:150px;object-fit:cover}.correction-section{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.menu-editor-row{display:grid;grid-template-columns:1fr 2fr auto auto auto;gap:8px;margin:12px 0;align-items:center}.menu-editor-row input{margin:0}.menu-editor-row button{padding:10px}
.correction-card{padding:24px;margin:16px 0;background:white;border:1px solid var(--line);border-radius:12px}.report-message{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1000px){.portal-header{display:flex;justify-content:space-between;gap:14px}.portal-header .header-links{display:none}.portal-header .brand img{max-width:170px}.portal-header .brand{font-size:22px}.portal-header summary span{display:none}.menu-editor-row{grid-template-columns:1fr 1fr auto}.menu-editor-row input{grid-column:1/-1}}
@media(max-width:600px){.related .cards{grid-template-columns:1fr}.portal-header{padding:12px 18px}.public{padding:0 12px;margin-top:18px}#share-dialog,#correction-dialog{padding:18px}.article-actions a:first-child{width:100%}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.portal-header .languages{display:flex;gap:5px;margin:0;padding:0;border:0;align-items:center}.languages a{font-size:23px;padding:5px;border-radius:8px;text-decoration:none;line-height:1}.languages a[aria-current]{background:#e5ecf3;box-shadow:0 0 0 1px #acbac9}
.portal-header .mobile-menu[open] nav,.portal-header .header-search[open] form{position:fixed;inset:0;z-index:2000;width:100%;height:100dvh;max-height:none;min-width:0;box-sizing:border-box;background:#fff;padding:80px max(24px,calc((100vw - 960px)/2));border:0;margin:0;overflow:auto;box-shadow:none}.portal-header .mobile-menu nav a{font-size:clamp(22px,4vw,36px);border-bottom:1px solid #e5ecf3;padding:18px 0}.portal-header .header-search form{display:flex;flex-direction:column;justify-content:center;gap:20px}.header-search h2,.mobile-menu h2{font-size:clamp(24px,5vw,44px)}.header-search input{font-size:24px;padding:20px}.header-search form>button:not(.close-button){align-self:flex-start}
body:has(.portal-header details[open]){overflow:hidden}
button.close-button,.portal-header button.close-button{display:grid;place-items:center;position:absolute;right:20px;top:20px;width:42px;height:42px;padding:0;border:1px solid #dce4ec;border-radius:50%;background:#f3f6fa;color:#273844;font-size:28px;font-weight:400;line-height:1;box-shadow:none}button.close-button:hover{background:#e1e8ef;color:#101e29}dialog>header{position:relative;padding-right:58px;min-height:46px}dialog>header .close-button{right:0;top:0}
.social-icon{width:21px;height:21px;flex-shrink:0}.article-actions a,.share-options a,.article-actions button,.share-options button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;font-weight:600;padding:11px 15px;text-decoration:none;transition:filter .15s}.article-actions a:hover,.share-options a:hover{filter:brightness(.9)}.article-actions a[href*="google.com"]{background:#fff;color:#2867ce;border:1px solid #cbd8ed}.article-actions a[href*="wa.me"],.share-options a[href*="wa.me"]{background:#128c4a;color:white}.article-actions a[href*="t.me"],.share-options a[href*="t.me"]{background:#1683b6;color:white}.share-options a[href*="facebook.com"]{background:#0866ff;color:white}.share-options a[href*="twitter.com"]{background:#111;color:white}.share-options a[href*="linkedin.com"]{background:#0a66c2;color:white}.share-options a[href*="reddit.com"]{background:#c63800;color:white}.share-options a[href^="mailto:"]{background:#536478;color:white}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:2px solid var(--accent);margin:0 0 20px;padding:0 0 10px}.section-heading h2{margin:0;font-size:25px}.section-heading a{font-size:14px;color:var(--accent);text-decoration:none}.highlight-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:14px}.highlight a{color:inherit;text-decoration:none;display:flex;height:100%;align-items:center;gap:14px}.highlight{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white}.highlight h2{font-size:16px;line-height:1.35;margin:5px 0}.highlight.compact img{width:150px;height:115px;object-fit:cover;flex-shrink:0}.highlight.compact> a>div{padding:10px 14px 10px 0}.highlight.lead{grid-row:span 4;position:relative;min-height:420px}.highlight.lead a{display:block}.highlight.lead img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.highlight.lead a>div{position:absolute;inset:auto 0 0;padding:80px 24px 24px;background:linear-gradient(transparent,#000e);color:white}.highlight.lead h2{font-size:25px}.highlight time{font-size:12px}.category-badge{display:inline-block;color:var(--accent);font-size:12px;font-weight:700}.lead .category-badge{background:var(--accent);color:white;padding:5px 10px;border-radius:20px}.home-category{margin-top:42px}.home-category .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.home-category .pagination{display:none}
@media(max-width:700px){.portal-header{gap:9px}.portal-header .brand{font-size:19px}.portal-header .languages a{font-size:20px;padding:3px}.portal-header .brand img{max-width:110px}.highlight-grid{grid-template-columns:1fr}.highlight.lead{grid-row:auto;min-height:350px}.highlight.compact img{width:110px;height:105px}.highlight.lead h2{font-size:22px}.home-category .cards{grid-template-columns:1fr}.section-heading h2{font-size:22px}.section-heading a{font-size:12px}.portal-header .header-search[open] form{padding:70px 24px}.portal-header .languages{gap:1px}}

.portal-header .languages a{display:inline-flex;align-items:center;justify-content:center}.language-flag{display:block;width:28px;height:19px;border-radius:3px;box-shadow:0 0 0 1px #0002}.portal-header .languages a span{display:block}@media(max-width:700px){.language-flag{width:23px;height:16px}}

@media(max-width:700px){.portal-header .brand{min-width:0;max-width:calc(100vw - 190px);font-size:16px;white-space:normal;overflow-wrap:anywhere;line-height:1.2}}

.catalog-header{margin:0 0 28px;padding-bottom:18px;border-bottom:1px solid var(--line)}.catalog-header h1{font-size:32px;margin:8px 0}.catalog-description{font-size:16px;color:var(--muted);line-height:1.6;margin:0}
.catalog-backlink{margin:28px 0;display:block}.catalog-backlink a{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:8px;background:#f3f6fa;border:1px solid var(--line);color:var(--ink);text-decoration:none;font-weight:600;transition:background .15s}.catalog-backlink a:hover{background:#e2e8f0;text-decoration:none}

/* Link Graph & SEO Admin Styles */
.link-map-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin-bottom:22px}
.kpi-card{background:white;border:1px solid var(--line);border-radius:10px;padding:16px 18px;cursor:pointer;transition:transform .12s,box-shadow .12s,border-color .12s}
.kpi-card:hover{transform:translateY(-2px);box-shadow:0 6px 16px #0000000d;border-color:var(--accent)}
.kpi-card .kpi-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:1px;font-weight:700;margin-bottom:6px;display:flex;align-items:center;justify-content:space-between}
.kpi-card .kpi-value{font-size:28px;font-weight:800;color:var(--ink);line-height:1.1;margin-bottom:4px;font-family:Manrope,sans-serif}
.kpi-card .kpi-desc{font-size:12px;color:var(--muted);line-height:1.4}
.kpi-card.orphan-alert{border-color:#fca5a5;background:#fef2f2}
.kpi-card.orphan-alert .kpi-label{color:#b91c1c}
.kpi-card.orphan-alert .kpi-value{color:#dc2626}
.kpi-card.orphan-alert:hover{border-color:#dc2626;box-shadow:0 6px 16px #dc262615}

.segmented-nav{display:inline-flex;background:#e7eef0;padding:4px;border-radius:8px;gap:4px;margin-bottom:18px;flex-wrap:wrap}
.segmented-nav button{background:transparent;color:var(--ink);padding:8px 16px;border-radius:6px;font-size:13px;font-weight:600;border:0;box-shadow:none;transition:all .15s}
.segmented-nav button:hover{background:#d5e2e6}
.segmented-nav button.active{background:white;color:var(--ink);box-shadow:0 2px 6px #00000018}
.segmented-nav button.orphan-tab.active{background:#dc2626;color:white}
.segmented-nav button.orphan-tab{color:#b91c1c}

.badge.orphan{background:#fee2e2;color:#991b1b;border:1px solid #f87171;font-weight:700;display:inline-flex;align-items:center;gap:4px}
.badge.connected{background:#dcfce7;color:#166534;border:1px solid #86efac;font-weight:600}
.badge.outbound{background:#e0f2fe;color:#075985;border:1px solid #7dd3fc;font-weight:600}

.orphan-callout{background:#fff1f2;border:1px solid #fecdd3;border-left:4px solid #e11d48;padding:14px 18px;border-radius:8px;margin-bottom:20px;font-size:14px;line-height:1.55;color:#881337}
.orphan-callout strong{color:#9f1239;font-weight:700}

.canvas-container{position:relative;background:#0f172a;border-radius:12px;overflow:hidden;border:1px solid #334155;height:650px;width:100%;box-shadow:inset 0 2px 10px #00000040}
#link-graph-canvas{display:block;width:100%;height:100%;cursor:grab}
#link-graph-canvas:active{cursor:grabbing}

.canvas-controls{position:absolute;top:16px;left:16px;display:flex;gap:8px;flex-wrap:wrap;z-index:10;background:#1e293bd9;backdrop-filter:blur(8px);padding:8px 12px;border-radius:8px;border:1px solid #475569}
.canvas-controls button{padding:6px 12px;font-size:12px;background:#334155;color:#f8fafc;border:1px solid #475569;border-radius:6px}
.canvas-controls button:hover{background:#475569}
.canvas-controls select,.canvas-controls input{margin:0;padding:6px 10px;font-size:12px;background:#0f172a;color:#f8fafc;border:1px solid #475569;border-radius:6px;width:auto}

.canvas-legend{position:absolute;bottom:16px;right:16px;background:#1e293bd9;backdrop-filter:blur(8px);padding:10px 14px;border-radius:8px;border:1px solid #475569;color:#94a3b8;font-size:12px;display:flex;flex-direction:column;gap:6px;z-index:10}
.canvas-legend-item{display:flex;align-items:center;gap:8px}
.canvas-legend-dot{width:12px;height:12px;border-radius:50%;display:inline-block}

#connections-modal{width:880px;max-width:95vw;max-height:88vh;padding:24px;border-radius:12px}
#connections-modal header{margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--line)}
#conn-modal-meta{display:flex;align-items:center;gap:10px;margin-top:6px;flex-wrap:wrap}
.conn-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px}
@media(max-width:768px){.conn-columns{grid-template-columns:1fr}}
.conn-col{background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:16px}
.conn-col h3{font-size:15px;margin:0 0 12px;display:flex;align-items:center;justify-content:space-between;color:var(--ink)}
.conn-list{display:flex;flex-direction:column;gap:8px;max-height:360px;overflow-y:auto;padding-right:4px}
.conn-item{background:white;border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:13px;display:flex;flex-direction:column;gap:4px}
.conn-item strong{font-size:13px;color:var(--ink)}
.conn-item .anchor-text{font-size:12px;color:var(--muted);font-style:italic}
.conn-item .conn-actions{display:flex;gap:8px;margin-top:6px}
.conn-empty{font-size:13px;color:var(--muted);padding:16px 0;text-align:center;font-style:italic}

.lang-filter-bar{display:flex;align-items:center;gap:8px;margin-bottom:18px;flex-wrap:wrap;background:#f8fafc;padding:8px 12px;border-radius:10px;border:1px solid var(--line)}
.lang-bar-label{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:0.5px;margin-right:4px}
.lang-btn{background:white;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer;transition:all .15s}
.lang-btn:hover{background:#f1f5f9;border-color:#cbd5e1}
.lang-btn.active{background:var(--accent);color:white;border-color:var(--accent);box-shadow:0 2px 6px #00000018}

.badge.lang-pill{font-weight:700;font-size:11px;padding:2px 8px;border-radius:6px;letter-spacing:0.3px}
.badge.lang-pill.lang-pt-br,.badge.lang-pill.lang-pt{background:#e0f2fe;color:#0369a1;border:1px solid #7dd3fc}
.badge.lang-pill.lang-es{background:#fef3c7;color:#b45309;border:1px solid #fcd34d}
.badge.lang-pill.lang-en{background:#f3e8ff;color:#7e22ce;border:1px solid #d8b4fe}

/* Public Entity Page & Fact Sheet Styles */
.entity-page{max-width:960px;margin:0 auto;padding:28px 34px}
.entity-hero{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px;align-items:start;margin-bottom:28px;padding-bottom:24px;border-bottom:1px solid var(--line)}
.entity-Hero-no-photo,.entity-hero:not(:has(.entity-photo)){grid-template-columns:1fr}
.entity-photo{margin:0;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:#f8fafc;box-shadow:0 8px 24px #00000012}
.entity-photo img{width:100%;height:auto;max-height:360px;object-fit:cover;display:block}
.entity-photo figcaption{font-size:12px;color:var(--muted);padding:8px 12px;background:#f8fafc;border-top:1px solid var(--line)}
.entity-hero-info h1{font-size:clamp(28px,4vw,42px);line-height:1.15;margin:10px 0 12px}
.entity-type-pill{display:inline-flex;align-items:center;gap:6px;background:var(--accent);color:white;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:0.8px;padding:5px 12px;border-radius:999px}
.entity-excerpt{font-size:18px;color:var(--muted);line-height:1.6;margin:10px 0 16px}
.entity-ficha-card{background:#f8fafc;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:12px;padding:22px 26px;margin:24px 0}
.entity-ficha-card h2{font-size:20px;margin:0 0 16px;color:var(--ink);display:flex;align-items:center;gap:8px}
.fact-sheet{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px 22px;margin:0}
.fact-row{background:white;border:1px solid #e2e8f0;border-radius:8px;padding:12px 14px}
.fact-row dt{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:0.6px;color:var(--muted);margin-bottom:4px}
.fact-row dd{margin:0;font-size:15px;font-weight:600;color:var(--ink);line-height:1.45;overflow-wrap:anywhere}
.entity-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.entity-chip{display:inline-flex;align-items:center;gap:8px;background:#f1f5f9;border:1px solid #cbd5e1;color:var(--ink);padding:5px 12px;border-radius:999px;font-size:13px;font-weight:600;text-decoration:none;transition:all .15s}
.entity-chip:hover{background:var(--accent);color:white;border-color:var(--accent);text-decoration:none}
.entity-chip-thumb{width:22px;height:22px;border-radius:50%;object-fit:cover;flex-shrink:0}
.entity-chip-type{font-size:11px;text-transform:uppercase;letter-spacing:0.4px;opacity:0.75;font-weight:700}
.entity-body{margin:26px 0;line-height:1.85;font-size:18px}
.entity-posts-section{margin-top:36px;padding-top:28px;border-top:2px solid var(--line)}
.entity-posts-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.entity-posts-head h2{margin:0;font-size:24px}
.entity-posts-count{background:var(--accent);color:white;font-weight:800;font-size:13px;padding:4px 12px;border-radius:999px}
.empty-posts{color:var(--muted);font-style:italic;background:#f8fafc;padding:18px;border-radius:8px;border:1px dashed var(--line)}
.post-entities-box{margin:28px 0;padding:16px 20px;background:#f8fafc;border:1px solid var(--line);border-radius:10px;display:flex;flex-direction:column;gap:10px}
.post-entities-label{font-size:12px;text-transform:uppercase;letter-spacing:0.7px;color:var(--muted)}
@media(max-width:700px){.entity-page{padding:18px}.entity-hero{grid-template-columns:1fr}.entity-photo{max-width:220px}.fact-sheet{grid-template-columns:1fr}}

/* Admin Unified Entities & Picker Styles */
.entity-seo-explainer{background:#f0f9ff;border:1px solid #bae6fd;border-left:4px solid #0284c7;padding:12px 16px;border-radius:8px;margin-bottom:18px;font-size:13px;color:#0c4a6e;line-height:1.5}
.entity-row-title{display:flex;align-items:center;gap:12px}
.entity-row-thumb{width:42px;height:42px;border-radius:8px;object-fit:cover;border:1px solid var(--line);flex-shrink:0}
.entity-row-icon{width:42px;height:42px;border-radius:8px;background:#f1f5f9;border:1px solid var(--line);display:grid;place-items:center;font-size:20px;flex-shrink:0}
.badge.entity-kind-badge{background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;font-weight:700}
.entity-kind-banner{background:#f8fafc;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:10px;padding:14px 18px;margin-bottom:20px}
.entity-banner-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin-bottom:10px;font-size:13px}
.entity-banner-head span{color:var(--muted)}
.entity-kind-pills{display:flex;flex-wrap:wrap;gap:8px}
.entity-kind-pill{background:white;color:var(--ink);border:1px solid #cbd5e1;padding:8px 14px;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer;transition:all .15s}
.entity-kind-pill:hover{background:#f1f5f9;border-color:var(--accent)}
.entity-kind-pill.active{background:var(--accent);color:white;border-color:var(--accent);box-shadow:0 2px 8px #087d8f33}
.meta-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin-bottom:18px}
.meta-fields-grid label{margin:0;font-size:13px;font-weight:600}
.meta-fields-grid label.full-width{grid-column:1/-1}
@media(max-width:720px){.meta-fields-grid{grid-template-columns:1fr}}
.entity-picker-box{background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:18px;display:flex;flex-direction:column;gap:10px}
.entity-selected-chips{display:flex;flex-wrap:wrap;gap:6px;min-height:28px;align-items:center}
.entity-admin-chip{display:inline-flex;align-items:center;gap:4px;background:#e0f2fe;color:#075985;border:1px solid #7dd3fc;border-radius:999px;padding:4px 10px;font-size:12px}
.entity-admin-chip .chip-remove{background:transparent;color:#0369a1;border:0;padding:0 4px;font-size:15px;line-height:1;cursor:pointer;box-shadow:none}
.entity-admin-chip .chip-remove:hover{color:#dc2626}
.entity-empty-hint{color:var(--muted);font-size:12px;font-style:italic}
.entity-search-row{display:grid;grid-template-columns:140px minmax(0,1fr);gap:6px}
.entity-search-row select,.entity-search-row input{margin:0;font-size:12px;padding:8px}
.entity-search-results{display:flex;flex-direction:column;gap:4px;max-height:170px;overflow-y:auto}
button.entity-result-item{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;background:white;color:var(--ink);border:1px solid #e2e8f0;border-radius:6px;padding:7px 10px;font-size:12px;font-weight:600;cursor:pointer}
button.entity-result-item:hover{border-color:var(--accent);background:#f0fdfa}
button.entity-result-item small{color:var(--accent);font-weight:700;white-space:nowrap}
.entity-quick-create{border-top:1px dashed #cbd5e1;padding-top:8px;font-size:12px}
.entity-quick-create summary{cursor:pointer;font-weight:700;color:var(--accent)}
.entity-quick-form{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.entity-quick-form select,.entity-quick-form input,.entity-quick-form button{margin:0;font-size:12px;padding:8px}
.entity-seo-status{padding:12px 16px;border-radius:8px;margin:14px 0;display:flex;flex-direction:column;gap:4px;font-size:13px}
.entity-seo-status.indexable{background:#dcfce7;border:1px solid #86efac;color:#14532d}
.entity-seo-status.noindex{background:#fef2f2;border:1px solid #fca5a5;color:#7f1d1d}
.entity-assoc-post-list{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.entity-assoc-post-item{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f8fafc;border:1px solid var(--line);border-radius:8px;padding:8px 12px;font-size:13px}
.entity-assoc-post-item button{padding:6px 10px;font-size:12px}

/* Alphabetical Organization (Todos + A..Z + 0-9) */
.alpha-nav{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:16px 0 18px;padding:12px 14px;background:#f8fafc;border:1px solid var(--line);border-radius:10px}
.alpha-pill,button.alpha-pill,a.alpha-pill{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;padding:0 10px;border-radius:8px;border:1px solid #cbd5e1;background:white;color:var(--ink);font-size:13px;font-weight:700;text-decoration:none;cursor:pointer;transition:all .15s;line-height:1}
.alpha-pill.alpha-all,button.alpha-pill.alpha-all,a.alpha-pill.alpha-all{padding:0 14px;background:#f1f5f9}
.alpha-pill:hover,button.alpha-pill:hover,a.alpha-pill:hover{border-color:var(--accent);color:var(--accent);background:#f0fdfa;transform:translateY(-1px)}
.alpha-pill.is-empty{opacity:.55;background:#f8fafc}
.alpha-pill.active,button.alpha-pill.active,a.alpha-pill.active{background:var(--accent);color:white;border-color:var(--accent);opacity:1;box-shadow:0 2px 8px #087d8f33}
.alpha-section-heading{margin:4px 0 14px;font-size:20px;font-weight:800;color:var(--ink)}
.entity-same-letter-section{background:var(--card, #ffffff);border:1px solid var(--line);border-radius:12px;padding:22px 26px;margin:28px 0}
.entity-same-letter-section h2{margin:0 0 10px;font-size:19px}
.entity-same-letter-section h2 a{color:var(--ink);text-decoration:none}
.entity-same-letter-section h2 a:hover{color:var(--accent);text-decoration:underline}
.entity-chip.active{border-color:var(--accent);background:#f0fdfa}

/* Link Map & Orphan Pages CSV / XLS Export Controls */
.link-map-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.export-actions-group{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto;background:#f8fafc;border:1px solid var(--line);padding:6px 8px;border-radius:10px}
.export-actions-group select{margin:0;padding:8px 10px;font-size:12px;width:auto;min-width:210px}
.export-btn,button.export-btn{margin:0;padding:8px 12px;font-size:12px;font-weight:700;white-space:nowrap;border-radius:8px;cursor:pointer}
.xls-btn,button.xls-btn{background:#15803d;color:#ffffff;border:1px solid #166534}
.xls-btn:hover,button.xls-btn:hover{background:#166534}
.orphan-callout{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.orphan-callout-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}

.pseo-card{border:1px solid #dbe5e8;background:#f8fbfc;border-radius:12px;padding:20px;margin:20px 0}.pseo-form{max-width:850px;display:grid;gap:14px}.pseo-form label{display:grid;gap:6px}.pseo-form label:has(input[type=checkbox]){display:block}.pseo-form button{justify-self:start}.pseo-form .filters{margin:0}.pseo-content-workspace{display:grid;grid-template-columns:minmax(0,1fr) 340px;flex:1;min-height:0}.pseo-rich{background:white;border:1px solid #d3e1e5;border-radius:8px;padding:14px;min-height:250px}.pseo-rich .tiptap{outline:0;min-height:220px}.pseo-content-workspace .lp-right input,.pseo-content-workspace .lp-right select,.pseo-content-workspace .lp-right textarea{width:100%;max-width:100%}.pseo-content-workspace .lp-right{padding:20px}#view details>label{display:block;padding:4px}#view details{padding:14px;border:1px solid #dbe5e8;border-radius:8px;margin:15px 0}#view details input[type=checkbox]{width:auto;margin-right:8px}@media(max-width:800px){.pseo-content-workspace{grid-template-columns:minmax(0,1fr) 260px}.pseo-content-workspace .lp-right{display:block}}

.error-page{max-width:760px;margin:clamp(32px,7vw,100px) auto;padding:clamp(24px,5vw,56px);text-align:center;background:white;border:1px solid #dce6e9;border-radius:24px;box-shadow:0 18px 50px #193c4710}.error-code{display:block;font-size:clamp(80px,20vw,150px);font-weight:900;line-height:1;color:var(--accent);letter-spacing:-.06em}.error-page h1{font-size:clamp(26px,5vw,42px);margin:24px 0 12px}.error-page>p{color:#526773;line-height:1.7}.error-search{margin:32px auto;text-align:left;max-width:520px}.error-search label{display:block;margin-bottom:10px;font-weight:600}.error-search>div{display:flex;gap:10px}.error-search input{min-width:0;flex:1}.error-page nav{display:flex;justify-content:center;align-items:center;gap:24px;flex-wrap:wrap}.error-home{font-weight:700;color:var(--accent)}@media(max-width:480px){.error-search>div{flex-direction:column}.error-page{border-radius:16px}}
