/* Terminal_UI-inspired corporate dashboard skin
   Brand palette derived from Eido logo:
   bg ~ #001020, accent ~ #60C0E0
*/

:root{
  --bg: #001020;
  --bg2: #000a12;
  --panel: rgba(255,255,255,0.035);
  --panel2: rgba(255,255,255,0.02);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.86);
  --muted: rgba(255,255,255,0.56);
  --accent: #60C0E0;
  --accent2: #10A4D6;
  --ok: #37ff8b;
  --warn: #ffe66b;
  --err: #ff4d6d;
  --info: #b084ff;

  --radius: 14px;
  --shadow: 0 18px 50px rgba(0,0,0,0.55);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* ------------------------------
   Code blocks (posts)
   ------------------------------ */

/* Default styling for any <pre><code> inside post content */
.post-body pre,
.code-block{
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
  overflow-x: auto;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.post-body pre code,
.code-block code{
  display: block;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  white-space: pre;
}

/* TIP / note variant */
.code-block--tip{
  background: rgba(16,164,214,0.12);
  border-color: rgba(96,192,224,0.45);
}

/* Inline code */
.post-body code{
  padding: 1px 6px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(0,0,0,0.25);
}

.post-body pre code{
  /* don't double-style code inside pre */
  padding: 0;
  border: 0;
  background: transparent;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background: radial-gradient(1200px 900px at 20% 10%, rgba(96,192,224,0.14), transparent 60%),
              radial-gradient(900px 700px at 70% 20%, rgba(16,164,214,0.10), transparent 55%),
              linear-gradient(180deg, var(--bg2), var(--bg));
  color: var(--text);
  font-family: var(--mono);
  letter-spacing: 0.2px;
}

a{ color: var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

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

.app{
  display:grid;
  grid-template-columns: 280px 1fr;
  min-height:100vh;
}


.sidebar{
  position: relative;
  padding: 18px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.15));
}


.brand{
  display:flex;
  flex-direction: column;
  gap:10px;
  align-items:center;
  justify-content:center;
  padding: 14px 10px;
  text-align:center;
  border: 1px solid transparent;
  border-radius: 12px;
}
.brand:hover{
  border-color: rgba(96,192,224,0.30);
  background: rgba(96,192,224,0.04);
  text-decoration:none;
}
.brand__logo{
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.65));
}
.brand__text{ line-height: 1.1; text-align:center; }
.brand__name{
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 18px;
}
.brand__sub{
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--muted);
}

.sidebar__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 14px 10px 18px;
}

.pill{
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(0,0,0,0.22);
}
.pill--ok{ color: var(--ok); border-color: rgba(55,255,139,0.35); }
.pill--warn{ color: var(--warn); border-color: rgba(255,230,107,0.35); }

.nav{
  margin-top: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__item{
  display:block;
  padding: 10px 10px;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.10em;
  font-size: 12px;
  border-left: 2px solid transparent;
}
.nav__item:hover{
  color: #fff;
  border-left-color: rgba(96,192,224,0.55);
  background: rgba(96,192,224,0.04);
  text-decoration:none;
}

.sidebar__footer{
  position:absolute;
  left: 18px;
  right: 18px;
  bottom: calc(26px + env(safe-area-inset-bottom));
  padding-top: 14px;
}

.status{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.10em;
}
.status__dot{
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(55,255,139,0.10), 0 0 30px rgba(55,255,139,0.35);
}
.status__muted{ color: rgba(255,255,255,0.45); letter-spacing: 0.18em; }

.tiny{ margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.45); }

.main{
  padding: 18px 18px 46px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
  margin-bottom: 18px;
}
.breadcrumbs{
  color: rgba(255,255,255,0.60);
  letter-spacing: 0.10em;
  font-size: 12px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.breadcrumbs strong{ color: rgba(255,255,255,0.86); font-weight: 700; }
.topbar__right{
  display:flex;
  align-items:center;
  gap:12px;
}

.select select{
  font-family: var(--mono);
  color: rgba(255,255,255,0.82);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 8px 10px;
  outline:none;
}

.notif{
  font-family: var(--mono);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.80);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 8px 10px;
  letter-spacing: 0.10em;
  cursor:pointer;
}
.notif__count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  margin-left: 8px;
  border: 1px solid rgba(255,77,109,0.45);
  color: var(--err);
  font-weight: 700;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.grid--wide{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.panel{
  position:relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: var(--shadow);
  padding: 16px 16px;
  overflow:hidden;
}
.panel--hero{
  grid-column: span 2;
  min-height: 260px;
  padding: 18px 18px;
}
.panel__kicker{
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(96,192,224,0.90);
  margin-bottom: 8px;
}
.panel__title{
  font-size: 34px;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.panel__text{
  margin: 0 0 16px;
  color: rgba(255,255,255,0.70);
  line-height: 1.6;
  max-width: 62ch;
}
.panel__actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
.panel__watermark{
  position:absolute;
  right: 14px;
  top: 10px;
  font-size: 92px;
  letter-spacing: 0.08em;
  color: rgba(96,192,224,0.10);
  font-weight: 700;
  user-select:none;
}

.panel__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 12px;
}
.panel__title-sm{
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(96,192,224,0.88);
}
.panel__meta{
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.10em;
}

.panel--span2{ grid-column: span 2; }

/* Span full row when needed */
.panel--span3{ grid-column: span 3; }

/* In the Services section we stack two panels on the right. Make the table span both rows. */
.panel--span2rows{ grid-row: span 2; }

/* Pin a panel to the right-most column in 3-col grids (used to keep About under the map) */
.panel--col3{ grid-column: 3; }

/* Map panel */
.map{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  background: rgba(0,0,0,0.22);
}
.map__frame{
  display:block;
  width: 100%;
  height: 220px;
  border: 0;
}

/* Hours table */
.hours__title{
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(96,192,224,0.88);
  margin: 0 0 10px;
}
.hours__grid{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}
.hours__head,
.hours__row{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.hours__cell{
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  border-top: 1px solid rgba(255,255,255,0.10);
}
.hours__cell--head{
  border-top: 0;
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.30);
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.12em;
  font-size: 12px;
  text-transform: uppercase;
}
.btn:hover{
  border-color: rgba(96,192,224,0.40);
  background: rgba(96,192,224,0.06);
  text-decoration:none;
}
.btn--primary{
  background: rgba(96,192,224,0.14);
  border-color: rgba(96,192,224,0.55);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 0 0 4px rgba(96,192,224,0.08);
}
.btn--full{ width:100%; }
.btn--ok{ border-color: rgba(55,255,139,0.45); }
.btn--warn{ border-color: rgba(255,230,107,0.45); }
.btn--err{ border-color: rgba(255,77,109,0.45); }

.kv__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 8px 0 6px;
  color: rgba(255,255,255,0.74);
}
.kv__key{ color: rgba(255,255,255,0.48); }
.kv__val{ color: rgba(255,255,255,0.92); font-weight: 700; }

.panel__divider{
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 14px 0;
}

.form__row{ margin-top: 2px; }
.check{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.62);
  user-select:none;
}
.check input{ accent-color: var(--accent); }

.bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  overflow:hidden;
  margin-bottom: 8px;
}
.bar > span{
  display:block;
  height:100%;
  width: 50%;
  background: linear-gradient(90deg, rgba(96,192,224,0.85), rgba(55,255,139,0.65));
  border-radius: 999px;
}

.form{ display:flex; flex-direction:column; gap:10px; }
.label{
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(96,192,224,0.88);
}
.input{
  width:100%;
  font-family: var(--mono);
  color: rgba(255,255,255,0.84);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 10px 12px;
  outline:none;
}
.input:focus{
  border-color: rgba(96,192,224,0.55);
  box-shadow: 0 0 0 4px rgba(96,192,224,0.08);
}

.checkbox{
  display:flex;
  align-items:center;
  gap:10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.62);
  user-select:none;
  margin-top: 2px;
}
.checkbox input{ accent-color: var(--accent); }
.hint{
  margin: 6px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.table-wrap{
  overflow:auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
}
.table{
  width:100%;
  border-collapse:collapse;
  min-width: 680px;
  font-size: 12px;
}
.table th, .table td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align:left;
  vertical-align:top;
}
.table th{
  color: rgba(96,192,224,0.85);
  letter-spacing: 0.14em;
  font-weight: 700;
  background: rgba(0,0,0,0.22);
  position: sticky;
  top: 0;
}
.table tr:hover td{
  background: rgba(96,192,224,0.05);
}

.tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  letter-spacing: 0.14em;
  font-size: 10px;
  color: rgba(255,255,255,0.75);
}
.tag--ok{ color: var(--ok); border-color: rgba(55,255,139,0.45); }
.tag--warn{ color: var(--warn); border-color: rgba(255,230,107,0.45); }
.tag--err{ color: var(--err); border-color: rgba(255,77,109,0.45); }
.tag--info{ color: var(--info); border-color: rgba(176,132,255,0.45); }

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 12px;
}

.list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.log{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.28);
  padding: 10px 10px;
  max-height: 260px;
  overflow:auto;
}

/* Give the projects log more vertical room on desktop so it fills the available section space */
@media (min-width: 980px){
  #projects .log{ max-height: 520px; }
}
.log__row{
  padding: 8px 6px;
  border-bottom: 1px dashed rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  line-height: 1.55;
}
.log__row:last-child{ border-bottom:0; }
.log__time{
  display:inline-block;
  width: 70px;
  color: rgba(255,255,255,0.45);
}

.btn-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.footer{
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 14px;
  background: rgba(0,0,0,0.22);
}

/* === FOOTER COLUMNS === */
.footer__cols{
  display: grid;
  grid-template-columns: 1.4fr 0.6fr; /* Contact | LinkedIn */
  gap: 10px;
  align-items: start;
}

.footer__title{
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.80);
  font-size: 12px;
  margin-bottom: 6px;
  font-weight: 700;
}

.footer__item{
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin: 2px 0;
}

/* === LINKEDIN COLUMN === */
.footer__linkedin{
  text-align: right;
  justify-self: end;
}

.footer__linkedin .link{
  color: var(--accent);
  border-bottom: 1px solid rgba(90, 200, 255, 0.25);
  text-decoration: none;
}

.footer__linkedin .link:hover{
  border-bottom-color: rgba(90, 200, 255, 0.7);
  text-decoration: none;
}

/* === FOOTER BOTTOM (copyright / small text) === */
.footer__bottom{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  letter-spacing: 0.10em;
}

/* === RESPONSIVE === */
@media (max-width: 980px){
  .footer__cols{
    grid-template-columns: 1fr;
  }

  .footer__linkedin{
    text-align: left;
    justify-self: start;
    margin-top: 8px;
  }
}

/* Responsive */
@media (max-width: 980px){
  .app{ grid-template-columns: 1fr; }
  .sidebar{
    position:relative;
    height:auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .sidebar__footer{ position:relative; left:auto; right:auto; bottom:auto; }
  .grid, .grid--wide{ grid-template-columns: 1fr; }
  .panel--hero, .panel--span2, .panel--span3, .panel--col3{ grid-column: span 1; }
  .table{ min-width: 640px; }
  .footer__cols{ grid-template-columns: 1fr; }
  .panel__title{ font-size: 28px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
}

/* --- i18n additions --- */
.lang-switch { display: flex; gap: 8px; align-items: center; }

/* Tiny button variant (uses existing .btn styles) */
.btn--tiny { padding: 6px 10px; font-size: 12px; }

/* Capability cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 12px; background: rgba(0,0,0,0.12); }
.card__title { font-weight: 700; letter-spacing: 0.02em; margin-bottom: 6px; }
.card__text { color: rgba(255,255,255,0.78); line-height: 1.45; font-size: 13px; }

/* Compact text variant (used for short leads) */
.panel__text--compact{ margin: 0 0 12px; max-width: 70ch; }

/* Blog / Insights cards */
.posts{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.post{
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 12px;
  background: rgba(0,0,0,0.14);
  display:flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
}
.post__meta{ display:flex; align-items:center; justify-content:space-between; gap: 8px; font-size: 11px; color: rgba(255,255,255,0.55); letter-spacing: 0.08em; }
.post__title{ font-weight: 700; letter-spacing: 0.01em; line-height: 1.25; }
.post__excerpt{ color: rgba(255,255,255,0.76); line-height: 1.5; font-size: 12px; }
.post__link{ margin-top: auto; display:inline-flex; align-items:center; gap: 8px; color: rgba(96,192,224,0.90); border-bottom: 1px solid rgba(96,192,224,0.25); width: fit-content; padding-bottom: 2px; text-decoration: none; }
.post__link:hover{ border-bottom-color: rgba(96,192,224,0.65); }

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

/* Textarea sizing */
.input--area { min-height: 96px; resize: vertical; }

/* Mobile */
@media (max-width: 720px){
  .cards { grid-template-columns: 1fr; }
}



/* === ACCENTS & MEDIA === */
.panel--accent{
  position: relative;
  overflow: hidden;
}
.panel--accent:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 300px at 70% 15%, rgba(56,189,248,0.18), transparent 60%),
    radial-gradient(700px 260px at 20% 30%, rgba(34,197,94,0.10), transparent 60%),
    url("../images/hero-texture.png");
  opacity: 0.85;
  filter: blur(0px);
  pointer-events:none;
  z-index:0;
}
.panel--accent > *{ position: relative; z-index:1; }

/* === STACK BLOCK === */
.stack{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-top: 12px;
}
.stack__title{
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.70);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.stack__title--mt{ margin-top: 12px; }
.stack__list{
  margin: 0;
  padding-left: 16px;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  font-size: 12px;
}
.stack__list li{ margin: 6px 0; }
.stack__steps{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.80);
  line-height: 1.6;
  font-size: 12px;
}
.stack__steps li{ margin: 6px 0; }
.stack__chips{
  margin-top: 12px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.80);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.chip:hover{
  border-color: rgba(56,189,248,0.35);
}

/* === PROJECTS LOG (CENTERED CARD STYLE) === */
.log__row{
  display:flex;
  gap: 12px;
  align-items: center;
}
.log__left{
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 74px;
}
.log__content{
  flex:1;
  text-align:center;
}
.log__title{
  display:block;
  font-weight: 700;
  color: rgba(255,255,255,0.90);
}
.log__meta{
  display:block;
  margin-top: 2px;
  color: rgba(255,255,255,0.60);
}
.log__desc{
  display:block;
  margin-top: 6px;
  color: rgba(255,255,255,0.78);
}

/* Responsive stack */
@media (max-width: 980px){
  .stack{ grid-template-columns: 1fr; }
  .log__row{ flex-direction: column; align-items: stretch; }
  .log__left{ flex-direction: row; justify-content: center; }
  .log__content{ text-align:left; }
}

/* --- Author card --- */
.author-card{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.author-card__img{
  width:84px;
  height:84px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25) inset;
}
.author-card__body{ flex:1; min-width:0; }
.author-card__name{
  font-weight:700;
  letter-spacing:0.04em;
}
.author-card__role{
  margin-top:2px;
  font-size:12px;
  color: rgba(255,255,255,0.65);
}
.author-card__text{
  margin-top:10px;
  line-height:1.45;
  color: rgba(255,255,255,0.78);
}
.author-card__tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

/* --- Layout tweak: compact Services to give more space to Projects --- */
#services .panel{ padding: 12px 12px; }
#services .table-wrap{ max-height: 240px; }
#services .table th, #services .table td{ padding: 8px 8px; }
#services .map__frame{ height: 140px; }
#services .hours__title{ margin: 0 0 6px; }
#services .hours__cell{ padding: 6px 10px; }
/* keep the Services grid from over-stretching on tall viewports */
#services{ align-items: stretch; }
#services .panel{ align-self: start; }

/* --- Services: compact to prioritize Projects --- */
#services .panel[aria-label="Office map and hours"]{	
  max-height: 280px;
  overflow: auto;
}
#services .table-wrap{
  max-height: 280px;
  overflow: auto;
}
#services .map__frame{ height: 120px; }
#services .kv__row{ padding: 6px 0; }
#services .hours__cell{ padding: 6px 10px; }
#services .panel__divider{ margin: 10px 0; }

/* --- Projects: take more vertical space --- */
#projects .panel{
  min-height: 520px;
}
#projects .projects-list{
  max-height: none;
}

@media (min-width: 980px){
  /* EJEMPLO: si tu service matrix es el panel con la tabla */
  #services .panel--span2{
    grid-row: span 2;
  }

  /* importante: no lo “encojamos” */
  #services .panel{ align-self: stretch; }
}


/* =========================================================
   Services layout refinements (requested)
   - Remove About panel: avoid empty gaps
   - Make Service Matrix panel square
   - Show Office Map fully and use remaining height (no empty space)
   ========================================================= */
#services{
  align-items: stretch;
}

/* Make the services matrix visually square and keep the table usable */
#services .panel--services-matrix{
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 420px; /* ensures the square has room on large screens */
}
#services .panel--services-matrix .table-wrap{
  /* Let the table take only what it needs (up to a cap),
     and use the remaining space for the "Method A" fill section. */
  flex: 0 1 auto;
  max-height: 52%;
  min-height: 180px;
  overflow: auto;
}
/* Let the table adapt; horizontal scroll will still appear if needed */
#services .panel--services-matrix .table{
  min-width: 0;
}

/* Office map panel: make the map bigger and use remaining height */
#services .panel--office-map{
  display: flex;
  flex-direction: column;
  align-self: stretch;
  max-height: none !important;
  overflow: visible !important;
}
#services .panel--office-map .map__frame{
  /* Bigger map so it can be used without scrolling inside the panel */
  height: clamp(320px, 42vh, 520px) !important;
}
#services .panel--office-map .hours{
  /* Show the full schedule without creating an inner scrollbar */
  flex: 0 0 auto;
  min-height: auto;
  overflow: visible;
}

/* Ensure the schedule table itself never clips/scrolls inside the Services map panel */
#services .panel--office-map .hours__grid{ overflow: visible; }

/* Neutralize older compact rules for Services (but keep matrix table capped) */
#services .panel:not(.panel--services-matrix) .table-wrap{ max-height: none !important; }

/* ===============================
   Service Matrix fill (Method A)
   =============================== */
#services .panel--services-matrix .service-matrix__fill{
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

#services .panel--services-matrix .kpi-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

#services .panel--services-matrix .kpi{
  padding: 12px 12px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(0,0,0,.12);
}

#services .panel--services-matrix .kpi__label{
  font-size: 11px;
  letter-spacing: .14em;
  opacity: .7;
  text-transform: uppercase;
}

#services .panel--services-matrix .kpi__value{
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
}

#services .panel--services-matrix .kpi__hint{
  margin-top: 4px;
  font-size: 12px;
  opacity: .65;
}

#services .panel--services-matrix .caps{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

#services .panel--services-matrix .caps__title{
  font-size: 12px;
  letter-spacing: .14em;
  opacity: .8;
  text-transform: uppercase;
  margin-bottom: 8px;
}

#services .panel--services-matrix .caps__text{
  font-size: 13px;
  line-height: 1.5;
  opacity: .85;
  margin: 0 0 10px;
}

#services .panel--services-matrix .badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#services .panel--services-matrix .badge{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,255,160,.35);
  font-size: 12px;
  opacity: .9;
}

#services .panel--services-matrix .badge--warn{
  border-color: rgba(255,210,80,.45);
}

#services .panel--services-matrix .stack{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#services .panel--services-matrix .stack__item{
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  font-size: 12px;
  opacity: .85;
}

@media (max-width: 900px){
  #services .panel--services-matrix .kpi-row{ grid-template-columns: 1fr; }
  #services .panel--services-matrix .caps{ grid-template-columns: 1fr; }
  #services .panel--services-matrix .table-wrap{ max-height: none; }
}

@media (min-width: 980px){
  /* Don't force extra rows now that the About panel is removed */
  #services .panel--services-matrix{ grid-row: auto !important; }
}
