/* Panamá Cívica — «Periodismo de lo público». The look of a case file, not of a magazine.
   Loaded on top of style.css when a site file says "design": "expediente".

   The reasoning: this site's stories start from a contract, a budget transfer or an audit. Rounded cards and
   stock photography would dress a document up as lifestyle. Here the page behaves like the paperwork it
   quotes: hairlines, square corners, figures in a monospaced face so columns of money line up and a digit
   can be checked at a glance, and every piece of paper labelled with what it is.

   It also has to be unmistakable at a glance against the network's general daily (La República · Panamá),
   which shares this codebase. Recolouring was not enough — side by side the two front pages read as the same
   newspaper in two inks. So the difference here is structural, and in this order of visibility:
     1. the nameplate sits on the left, not centred: a letterhead, not a masthead;
     2. headlines are set in the sans face, not the serif: a report, not a broadsheet;
     3. the lead story leads with its words — the photograph follows on the right, smaller;
     4. the front page under the lead is a numbered docket of entries with hairlines, not a grid of cards.
   A reader who lands on either site knows within a second which one they are on. */
:root{
  --ink:#15201d;
  --muted:#5f6b67;
  --line:#dcdfdb;
  --paper:#fcfcfa;
  --soft:#f1f3f0;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
}

/* ---------- 1. the nameplate: a letterhead on the left ---------- */
/* La República centres its wordmark between two rules, the way a daily has for a century. This one is filed
   in the top-left corner like the heading of a document, with the tools pushed to the other end. */
.brand-row{grid-template-columns:1fr auto auto;gap:18px;padding-top:18px;padding-bottom:16px}
.brand{grid-column:1;justify-self:start;text-align:left;
  font:700 clamp(26px,5vw,42px)/1 var(--sans);letter-spacing:-.035em}
.brand .dot{color:var(--accent)}
.brand-tools{grid-column:2;align-self:center}
.btn-sub{grid-column:3;align-self:center}
.masthead .topbar{background:var(--ink)}
.masthead .topbar-in{font-family:var(--mono);font-size:12px;letter-spacing:.02em}
.btn-sub{border-radius:0;font-size:14px;letter-spacing:.02em}
.icon-btn{border-radius:0}

/* The section bar reads as the tabs of a file, not as a magazine's menu. */
.sections{border-top:1px solid var(--ink);border-bottom:1px solid var(--ink)}
.sections a{font-family:var(--mono);font-weight:500;font-size:12.5px;letter-spacing:.06em;
  text-transform:uppercase;padding:12px 0 10px;border-bottom-width:2px}
.trend-label{font-family:var(--mono);font-size:12px;letter-spacing:.04em}

/* ---------- 2. headlines in the sans face ---------- */
/* The single strongest tell. The daily speaks in serif, the way newspapers do; an audit report does not. */
.portada-text h1,.item h3,.story h1,.block-head h2,.portada-rel li,.most-read a,.latest a{
  font-family:var(--sans);letter-spacing:-.022em}
.portada-text h1{font-weight:800;font-size:clamp(28px,3.3vw,44px);line-height:1.08}
.item h3{font-weight:700;line-height:1.22}
.dek{font-family:var(--sans);color:#46524e}

/* ---------- 3. the lead: words first, photograph second ---------- */
.portada{grid-template-columns:1fr 1.02fr;gap:40px;align-items:start;padding:34px 0;
  border-bottom:2px solid var(--ink)}
.portada-text{order:1}
.portada-ph{order:2;aspect-ratio:4/3}
.portada-rel li{font-size:15.5px;font-weight:600}
.portada-rel li::before{border-radius:0;width:6px;height:6px;top:.55em}

/* ---------- 4. the front page as a docket ---------- */
/* Rows separated by hairlines, each with a small picture at a fixed width, like entries in a file index.
   On a narrow screen the rows stack back into ordinary cards so nothing is cramped. */
@media (min-width:821px){
  .top-grid{grid-template-columns:1fr;gap:0}
  .top-grid .item{display:grid;grid-template-columns:150px 1fr;gap:20px;align-items:start;
    padding:20px 0;border-bottom:1px solid var(--line)}
  .top-grid .item:first-child{padding-top:4px}
  .top-grid .item .ph{margin:0;aspect-ratio:4/3}
  .top-grid .item h3{font-size:20px}
  .top-grid .item .dek{font-size:15px;margin:5px 0 6px}
}

/* ---------- labels: every item says what kind of paper it is ---------- */
.kicker{font-family:var(--mono);font-weight:500;font-size:11px;letter-spacing:.08em;
  border:1px solid var(--accent);padding:3px 7px;border-radius:0;background:transparent}
.story-label{border-radius:0;font-family:var(--mono);font-weight:500}

/* ---------- square everything ---------- */
.ph,.portada-ph,.video-frame,.story figure img,.transparencia{border-radius:0}
.ph img,.portada-ph img{transition:none}
.ph:hover img,.portada-ph:hover img{transform:none}
/* Without stock photography (see "images": {"stock": false} in the site file) most cards show the designed
   graphic or the institution's card instead of a photograph. A hairline keeps those from floating. */
.ph{border:1px solid var(--line)}
.ph-empty{background:var(--soft);border:0}
.ph-empty span{font-family:var(--mono);font-weight:500}

.tags a{border-radius:0;font-family:var(--mono);font-weight:500;font-size:12px;
  background:transparent;border:1px solid var(--line);padding:6px 10px}
.tags a:hover{border-color:var(--accent)}

/* ---------- figures and dates in monospace ---------- */
/* Amounts, dates and file numbers are the substance of this site; they read better aligned and even. */
time,.desk,.latest li time,.story .meta,.story figcaption{font-family:var(--mono);font-size:12px;letter-spacing:0}
.body strong{font-family:var(--mono);font-weight:600;font-size:.94em}
.most-read .num{font-family:var(--mono);font-weight:600;color:var(--accent)}

/* ---------- rules instead of boxes ---------- */
.block-head{border-bottom:1px solid var(--ink);padding-bottom:10px}
.block-head h2{font-weight:700;font-size:clamp(20px,3.2vw,26px);line-height:1.15}
.block-head.small h2{font-family:var(--mono);font-weight:500;letter-spacing:.07em}
.rule-title{border-top:2px solid var(--ink);font-family:var(--mono);font-weight:500;letter-spacing:.06em}
.front,.special{border-bottom-color:var(--line)}
.newsletter-box{border-radius:0;border:1px solid var(--ink);background:var(--soft)}
.newsletter-box h2{font-family:var(--sans);font-weight:700;letter-spacing:-.02em}
.newsletter-box .eyebrow{font-family:var(--mono);font-weight:500;letter-spacing:.07em}
.newsletter-box input,.newsletter-box button{border-radius:0}

/* ---------- the story: a document with its own margin ---------- */
.story h1{font-weight:800;line-height:1.08}
.story .body{max-width:38em}
.body{font-size:18px;line-height:1.75}
/* A quotation from a document is set apart, with the green margin of the file folder. */
.body blockquote{margin:1.6em 0;padding:2px 0 2px 18px;border-left:3px solid var(--accent);
  font-family:var(--mono);font-size:15px;line-height:1.6;color:#2d3a36}
.sources,.fuentes{font-family:var(--mono);font-size:13px}
.transparencia{background:var(--soft);border-left-width:3px}
.transparencia h2{font-family:var(--mono);font-weight:600}

/* ---------- the live session: a record being taken down ---------- */
.pleno-head h1,.pleno-summary h2{font-family:var(--sans);font-weight:800;letter-spacing:-.022em}
.pleno-entries .tl-item time,.pleno-state,.pleno-others time,.pleno-box li span{font-family:var(--mono)}
.pleno-summary{border-left-width:3px}
.pleno-box{border-color:var(--ink);border-radius:0}
