/* Standalone tools page: no site nav, minimal footer. */
.tools-standalone .header-tools{margin-left:auto}
.tools-standalone .brand{display:inline-flex;align-items:center}

/* Logo. chula-base.css applies `filter:brightness(0) invert(1)` to the header
   lockup for its own dark-hero layout, which flattens the AquaWise mark into a
   featureless white silhouette, and pins it to 180x86 against a 2000x476
   source. aquawise-chula.css normally overrides both and swaps blue/white —
   it is referenced by every page but is NOT in this folder (404). Until it is
   added, render the white lockup unfiltered at its natural aspect ratio; the
   header sits on blue or a dark scrim at every scroll position, so the white
   lockup is always the correct one. */
.tools-standalone .site-header .brand{width:auto}
.tools-standalone .site-header .brand img{filter:none;width:auto;height:38px;object-fit:contain}
.tools-standalone .site-header .brand-blue{display:none}
.tools-standalone .site-header .brand-white{display:block}
@media(max-width:720px){
  .tools-standalone .site-header .brand img{height:31px}
}
.tools-standalone .site-header .header-tools button{display:inline-flex!important;align-items:center;justify-content:center}
/* Keep both controls visible at phone widths (base CSS hides them behind the hamburger).
   chula-tools.js wraps each button in .tool-anchor, so target the wrapper too. */
@media(max-width:900px){
  .tools-standalone .header-tools{margin-left:auto;gap:6px}
  .tools-standalone .site-header .header-tools>button,
  .tools-standalone .site-header .header-tools>.tool-anchor{display:inline-flex!important}
}
@media(max-width:760px){
  .tools-standalone .site-header .header-tools>button,
  .tools-standalone .site-header .header-tools>.tool-anchor{display:inline-flex!important}
  .tools-standalone .site-header .header-tools>.tool-anchor>button,
  .tools-standalone .site-header .header-tools>button{width:44px;height:44px;align-items:center;justify-content:center}
  .tools-standalone .tool-popover{right:0;left:auto}
}

/* Header dropdowns (text size + language), built by chula-tools.js.
   Like the logo rules above, the styling for .tool-anchor / .tool-popover /
   .tool-option lives in the missing aquawise-chula.css, so without this block
   both menus render as unstyled text spilling out of the header. */
.tool-anchor{position:relative;display:inline-flex}
.tool-popover{position:absolute;top:calc(100% + 12px);right:0;z-index:60;min-width:196px;padding:14px;border-radius:14px;background:#fff;color:#0d2140;box-shadow:0 18px 44px rgba(3,19,44,.24);text-align:left}
/* .tool-popover is toggled with the `hidden` attribute — this guard keeps the
   display rule above from winning, per the convention in README.md. */
.tool-popover[hidden]{display:none!important}
.tool-popover-title{margin-bottom:10px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#7a879b}
.tool-popover-row{display:flex;align-items:center;gap:8px}
.tool-option{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:0 14px;border:1px solid #dde5f0;border-radius:10px;background:#fff;color:#0d2140;font-family:inherit;line-height:1;cursor:pointer;transition:background .16s ease,border-color .16s ease}
.tool-popover-row .tool-option{flex:1}
.tool-option:hover{background:#f2f6fc;border-color:#c3d4ea}
.tool-option[aria-pressed="true"]{border-color:#0b58bd;background:#eaf2ff;color:#0b58bd;font-weight:700}
.tool-option[disabled]{opacity:.5;cursor:not-allowed}
/* The active language renders as <button> and the inactive one as <a>
   (chula-tools.js). Buttons centre their text by default, so without an
   explicit text-align the two rows do not line up with each other. */
.tool-option.wide{width:100%;justify-content:flex-start;gap:11px;margin-top:8px;padding:0 12px;text-decoration:none;text-align:left}
.tool-option.wide b{flex:0 0 auto;min-width:34px;padding:4px 7px;border-radius:6px;background:#eef3fa;color:#41536b;font-size:11px;font-weight:800;letter-spacing:.06em;text-align:center}
.tool-option.wide span{flex:1;font-size:15px;text-align:left}
.tool-option.wide em{flex:0 0 auto;font-style:normal;font-size:11px;color:#7a879b}
.tool-option.wide[aria-pressed="true"] b{background:#0b58bd;color:#fff}

.mini-footer{padding:60px 4.6vw 30px;background:linear-gradient(120deg,#0b58bd,#052b63);color:#fff}
.mini-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:28px}
.mini-id{display:flex;flex-direction:column;gap:14px;max-width:44ch}
.mini-id img{width:172px;height:auto}
.mini-id p{margin:0;font-size:16px;line-height:1.6;color:rgba(255,255,255,.82);text-wrap:pretty}
.mini-fb{display:inline-flex;flex:0 0 auto;align-items:center;gap:10px;min-height:52px;padding:0 24px;border-radius:999px;background:#fff;color:#0b58bd;font-size:16px;font-weight:700;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}
.mini-fb:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(2,16,40,.28)}
.mini-fb .material-symbols-outlined{font-size:21px}
.mini-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:34px;padding-top:20px;border-top:1px solid rgba(255,255,255,.18);font-size:13px;color:rgba(255,255,255,.62)}
.mini-bottom a{color:rgba(255,255,255,.62);text-decoration:none}
.mini-bottom a:hover{color:#fff}

@media(max-width:720px){
  .mini-footer{padding:44px 22px 26px}
  .mini-top{flex-direction:column;align-items:flex-start;gap:22px}
  .mini-id img{width:146px}
  .mini-fb{align-self:stretch;justify-content:center}
  .mini-bottom{margin-top:26px}
}

/* ---- Beta notice + data disclosure (aw-beta.js) -------------------------- */
/* Fixed to the bottom, not the top: chula-base.css sets .site-header to
   position:fixed globally, so anything placed above it in the flow is painted
   under it. A bottom bar sidesteps that entirely, and a disclaimer that stays
   on screen while the farmer scrolls is more likely to be read.
   z-index sits below the calculator sheet (120) so it never covers a result. */
.beta-banner{position:fixed;left:0;right:0;bottom:0;z-index:100;display:flex;align-items:center;gap:12px;padding:10px max(20px,4.6vw);padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));background:#0d2140;color:#dce6f5;font-size:14px;line-height:1.5;box-shadow:0 -6px 24px rgba(3,19,44,.3);transition:opacity .2s ease}
.beta-banner[hidden]{display:none!important}
/* Reserve the bar's height on the FOOTER, not on <body>. Padding on the body
   sits below the footer and picks up the white page background, which reads as
   a white strip under the dark footer. Growing the footer's own padding keeps
   its gradient running all the way down to the bar.
   --beta-h is measured live in aw-beta.js: the bar wraps to two or three lines
   on a phone, so a fixed reservation would either clip content or leave a gap. */
body.beta-visible .mini-footer{padding-bottom:calc(var(--beta-h,96px) + 26px)}
body.tool-sheet-open .beta-banner{opacity:0;pointer-events:none}
.beta-banner p{margin:0;flex:1;text-wrap:pretty}
.beta-tag{flex:0 0 auto;padding:3px 9px;border-radius:999px;background:#f4b740;color:#3a2600;font-size:11px;font-weight:800;letter-spacing:.1em}
.beta-more{border:0;background:none;padding:0;color:#8fc0ff;font:inherit;text-decoration:underline;cursor:pointer}
.beta-more:hover{color:#fff}
.beta-dismiss{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:32px;height:32px;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
.beta-dismiss:hover{background:rgba(255,255,255,.12)}
.beta-dismiss .material-symbols-outlined{font-size:19px}

.beta-panel{width:min(680px,calc(100vw - 40px))}
.beta-body{padding:24px 32px 30px}
.beta-body section{margin-bottom:22px}
.beta-body h3{margin:0 0 6px;font-size:17px;font-weight:700;color:#0d2140}
.beta-body p{margin:0;font-size:15px;line-height:1.6;color:#4a5a70;text-wrap:pretty}
.beta-privacy{padding:18px 20px;border-radius:14px;background:#f4f7fc}
.beta-toggle{display:flex;align-items:flex-start;gap:11px;margin-top:14px;font-size:15px;font-weight:600;color:#0d2140;cursor:pointer}
.beta-toggle input{width:20px;height:20px;flex:0 0 auto;margin:1px 0 0;accent-color:#0b58bd;cursor:pointer}
.beta-optout-note{margin-top:10px!important;font-size:14px!important;color:#0b58bd!important;font-weight:600}
.beta-optout-note[hidden]{display:none!important}
.beta-got{width:100%;min-height:52px;border:0;border-radius:12px;background:#0b58bd;color:#fff;font:inherit;font-size:16px;font-weight:700;cursor:pointer;transition:background .18s ease}
.beta-got:hover{background:#0a4ba1}

/* The in-sheet line under each calculator result. */
.result-beta{display:flex;align-items:flex-start;gap:8px;margin:10px 0 0;font-size:13px;line-height:1.5;color:#7a879b}
.result-beta .material-symbols-outlined{font-size:16px;flex:0 0 auto;margin-top:1px}

.beta-quiet{margin-top:10px!important;font-size:14px!important;color:#66768c!important}
.beta-toggle em{font-style:normal;font-weight:600;font-size:12px;padding:2px 7px;border-radius:999px;background:#dce9fb;color:#0b58bd;white-space:nowrap}

@media(max-width:640px){
  /* Top-align so a two- or three-line message keeps the pill and the close
     button on the first line instead of floating to the middle. */
  .beta-banner{align-items:flex-start;gap:10px;padding:11px 16px;padding-bottom:calc(11px + env(safe-area-inset-bottom,0px));font-size:13px;line-height:1.45}
  .beta-tag{margin-top:2px;padding:2px 7px;font-size:10px}
  .beta-dismiss{width:28px;height:28px;margin:-1px -4px 0 0}
  .beta-dismiss .material-symbols-outlined{font-size:17px}
  .beta-body{padding:20px 20px 24px}
  .beta-body section{margin-bottom:18px}
  .beta-privacy{padding:16px 16px 18px}
  .beta-toggle{font-size:14.5px}
}
/* Very narrow phones: let the "Details" link drop onto its own line rather
   than squeezing the message into a column of single words. */
@media(max-width:380px){
  .beta-banner{font-size:12.5px;gap:8px;padding:10px 13px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
  .beta-more{display:inline-block;margin-top:2px}
}

/* ---- Research-backed tools ------------------------------------------------ */
/* A tool whose constants come from a published paper carries a badge and, in the
   sheet, the full citation with a link out. Traceability is the feature: any
   number can be followed back to the study it came from. */
.research-badge{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:#e6f0ff;color:#0b58bd;font-size:10px;font-weight:800;letter-spacing:.08em;vertical-align:middle}
.status-tag.research{background:#e6f0ff;color:#0b58bd}
.result-research{margin:14px 0 0;padding:14px 16px;border-radius:12px;background:#f4f7fc;border-left:3px solid #0b58bd}
.result-research p{margin:0}
.rr-label{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#0b58bd}
.rr-label .material-symbols-outlined{font-size:15px}
.rr-title{margin-top:7px!important;font-size:14px;font-weight:650;line-height:1.45;color:#0d2140;text-wrap:pretty}
.rr-meta{margin-top:5px!important;font-size:12.5px;line-height:1.5;color:#5d6c80}
.rr-link{display:inline-flex;align-items:center;gap:5px;margin-top:10px;font-size:13.5px;font-weight:700;color:#0b58bd;text-decoration:none}
.rr-link:hover{text-decoration:underline}
.rr-link .material-symbols-outlined{font-size:16px}

/* ---- Browse by research paper --------------------------------------------- */
.research-body{padding:0 4.6vw 60px}
.research-body[hidden]{display:none!important}
.papers-lead{max-width:62ch;margin:0 0 22px;font-size:17px;line-height:1.6;color:#5d6c80;text-wrap:pretty}
.paper{position:relative;border:1px solid #e2e9f3;border-radius:16px;background:#fff;margin-bottom:14px;overflow:hidden;box-shadow:0 2px 10px rgba(13,33,64,.05)}
/* A column, not a row. The previous layout put a 42px book tile, four stacked
   text blocks and a chevron on one centred line; against a title that wraps to
   three lines on a phone the icon and chevron floated in the vertical middle
   with nothing to align to, and the institution list — long, dark and bold —
   competed with the title instead of supporting it. Stacking gives one clear
   reading order: what it is, what it says, who did it, where it came from. */
.paper-head{display:flex;flex-direction:column;align-items:stretch;width:100%;padding:16px 18px;border:0;background:none;font:inherit;text-align:left;cursor:pointer;transition:background .16s ease}
.paper-head:hover{background:#f6f9fe}
/* Reserves the corner the share button sits in, so a long badge never runs
   underneath it. */
.paper-top{display:flex;align-items:center;gap:8px;margin-bottom:9px;padding-right:42px}
.paper-title{display:block;font-size:20px;font-weight:700;line-height:1.45;color:#0d2140;text-wrap:pretty}
/* Supporting, not competing: the credibility comes from the names being there
   at all, so they are legible without pulling the eye off the title. */
.paper-orgs{display:block;margin-top:8px;font-size:13.5px;font-weight:500;line-height:1.5;color:#8492a6}
/* Footer rule separates the identity of the paper from its provenance, and
   gives the count and chevron something to sit on. */
.paper-meta{display:flex;align-items:center;gap:10px;margin-top:12px;padding-top:11px;border-top:1px solid #eef2f8}
.paper-cite{flex:1;min-width:0;font-size:13px;line-height:1.45;color:#8492a6}
.paper-count{flex:0 0 auto;padding:4px 11px;border-radius:999px;background:#eef4fc;font-size:13px;font-weight:700;color:#0b58bd;white-space:nowrap}
.paper-chev{flex:0 0 auto;color:#0b58bd;transition:transform .2s ease}
.paper-head[aria-expanded="true"] .paper-chev{transform:rotate(180deg)}
.paper-body{padding:2px 18px 20px}
.paper-body[hidden]{display:none!important}
.paper-summary{margin:0;font-size:16.5px;line-height:1.65;color:#41536b;text-wrap:pretty}
.paper-where{margin:9px 0 0;font-size:14px;color:#7a879b}
.paper-sub{margin:22px 0 9px;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#0b58bd}
.paper-findings{margin:0;padding:0;list-style:none}
.paper-findings li{position:relative;padding:6px 0 6px 21px;font-size:16px;line-height:1.6;color:#41536b;text-wrap:pretty}
.paper-findings li:before{content:"";position:absolute;left:4px;top:16px;width:6px;height:6px;border-radius:50%;background:#0b58bd}
.paper-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.paper-tool{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #e2e9f3;border-radius:12px;background:#f8fafd;text-decoration:none;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.paper-tool:hover{border-color:#b9cef0;background:#fff;transform:translateY(-1px)}
.paper-tool-text{flex:1;min-width:0}
.paper-tool-text b{display:block;font-size:16.5px;font-weight:700;color:#0d2140;line-height:1.35}
.paper-tool-text small{display:block;margin-top:4px;font-size:14px;line-height:1.5;color:#5d6c80}
.paper-tool .material-symbols-outlined{flex:0 0 auto;font-size:19px;color:#0b58bd}
.paper-link{display:inline-flex;align-items:center;gap:6px;margin-top:18px;font-size:15px;font-weight:700;color:#0b58bd;text-decoration:none}
.paper-link:hover{text-decoration:underline}
.paper-link .material-symbols-outlined{font-size:17px}

/* Research marker on the crop-stage links, so provenance is visible before you
   open the tool rather than only inside it. Pinned to the top-right corner: as
   a flex item it sat between the title and the arrow and squeezed the text.
   Tagged cards get a top strip so the badge never overlaps the arrow, which
   stays vertically centred. */
.stage-tool{position:relative}
.stage-tool-tag{position:absolute;top:9px;right:11px;padding:2px 8px;border-radius:999px;background:#e6f0ff;color:#0b58bd;font-size:10.5px;font-weight:800;letter-spacing:.02em;white-space:nowrap;pointer-events:none}
.stage-tool:has(.stage-tool-tag){padding-top:32px}
/* Fallback for engines without :has() — the badge then overlays the top of the
   card instead of getting its own strip, which is still legible. */
@supports not selector(:has(*)){
  .stage-tool-tag{top:6px;right:8px}
}

@media(max-width:720px){
  .research-body{padding:0 20px 50px}
  .paper-head{padding:14px 16px}
  .paper-title{font-size:19px}
  /* The count stays on a phone now that it has its own footer row — it is the
     one thing that says what opening this card gets you. */
  .paper-body{padding:2px 16px 18px}
  .stage-tool-tag{font-size:10px;padding:2px 7px}
}

/* The mode switch was built for two options; a third makes the labels wrap to
   two or three lines on a phone. Keep each label on one line and let the row
   scroll sideways instead of growing taller. */
.mode-switch{flex-wrap:nowrap;max-width:100%;overflow-x:auto;scrollbar-width:none}
.mode-switch::-webkit-scrollbar{display:none}
.mode-button{white-space:nowrap;flex:0 0 auto}
@media(max-width:820px){
  .mode-button{font-size:14.5px;padding:0 16px;gap:7px}
  .mode-button .material-symbols-outlined{font-size:19px}
}
@media(max-width:520px){
  .mode-button{font-size:13.5px;padding:0 13px}
}
/* Three modes do not fit a phone at full label length, and the newest one was
   the one scrolled off-screen. Swap to short labels rather than hide it. */
.mode-short{display:none}
@media(max-width:600px){
  .mode-full{display:none}
  .mode-short{display:inline}
  .mode-switch{display:flex;width:100%;justify-content:space-between;overflow-x:visible}
  .mode-button{flex:1 1 0;justify-content:center;padding:0 8px;gap:6px;font-size:14px}
}

/* A paper laid out along its own protocol phases. */
.paper-phases{margin:0;padding:0;list-style:none;counter-reset:none}
.paper-phase{position:relative;display:flex;gap:14px;padding:0 0 22px}
.paper-phase:not(:last-child):before{content:"";position:absolute;left:13px;top:30px;bottom:2px;width:2px;background:#e2e9f3}
.pp-num{position:relative;z-index:1;display:inline-flex;flex:0 0 28px;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#0b58bd;color:#fff;font-size:13px;font-weight:800}
.pp-body{flex:1;min-width:0}
.pp-name{margin:2px 0 0;font-size:17px;font-weight:700;color:#0d2140}
.pp-name em{font-style:normal;margin-left:6px;padding:2px 9px;border-radius:999px;background:#f0f4fa;font-size:12.5px;font-weight:700;color:#5d6c80}
.pp-note{margin:7px 0 0;font-size:15px;line-height:1.6;color:#5d6c80;text-wrap:pretty}
.pp-body .paper-tools{margin-top:10px}
/* A paper with no staged protocol renders one unnamed group. Numbering it puts
   a bare "1" against the tool list, which reads as step one of a sequence the
   study never had — so drop the badge, its connector line and the indent they
   reserved, and let the tools stand as a plain list. */
.paper-phases.is-unstaged .pp-num{display:none}
.paper-phases.is-unstaged .paper-phase{gap:0;padding-bottom:0}
.paper-phases.is-unstaged .paper-phase:before{display:none}
@media(max-width:720px){
  .paper-phase{gap:11px}
  .paper-phase:not(:last-child):before{left:11px}
  .pp-num{flex:0 0 24px;width:24px;height:24px;font-size:12px}
}
/* The single link from the crop-stage view across to the papers. */
.stage-tool-research{border-style:dashed;border-color:#bcd3f2;background:#f7faff}
.stage-tool-research .stage-tool-icon{background:#e6f0ff}
.stage-tool-research:hover{border-style:solid}

/* Thai-first paper identity. The study is Thai work published in an English
   journal; farmers read the Thai title and the Thai institutions, while the
   original title stays available so the citation can still be verified. */
/* The book icon lives inside the badge. As a standalone tile it had to be
   vertically centred against the whole header and never lined up with
   anything; here it is attached to the words it illustrates. */
.paper-flag{display:inline-flex;align-items:center;gap:5px;padding:4px 12px 4px 9px;border-radius:999px;background:#eaf6ee;color:#1d7a44;font-size:12.5px;font-weight:800;letter-spacing:.03em}
.paper-flag .material-symbols-outlined{font-size:16px}
.paper-original{margin:11px 0 0;font-size:13.5px;line-height:1.55;color:#8492a6}
.paper-original span{display:inline-block;margin-right:5px;padding:2px 8px;border-radius:5px;background:#f0f4fa;font-size:11.5px;font-weight:700;color:#5d6c80}
.rr-orgs{margin-top:5px!important;font-size:12.5px;font-weight:600;color:#41536b}

/* Transient confirmation. Sits above the calculator sheet (120) and the beta
   bar (100) — it confirms actions taken from inside both. `--beta-h` is
   measured and published by aw-beta.js, so the toast clears the bar at whatever
   height Thai line-wrapping gives it, and sits low when the bar is dismissed. */
/* Centred with left:0;right:0 + auto margins, NOT left:50% + translateX(-50%):
   with only `left` set, a fixed element's available width is the viewport minus
   that offset, so at left:50% the text wraps inside half the screen no matter
   what max-width says. */
.aw-toast{position:fixed;left:0;right:0;bottom:calc(var(--beta-h,0px) + 18px);z-index:200;display:flex;align-items:center;gap:9px;width:fit-content;max-width:min(92vw,440px);margin:0 auto;padding:13px 20px;border-radius:999px;background:#0d2140;color:#fff;font-size:15.5px;font-weight:600;line-height:1.45;text-wrap:pretty;box-shadow:0 10px 30px rgba(3,19,44,.32);transform:translateY(16px);opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.aw-toast.show{opacity:1;transform:translateY(0)}
.aw-toast .material-symbols-outlined{flex:0 0 auto;font-size:20px;color:#7ee0a6}
@media(max-width:520px){
  .aw-toast{gap:8px;padding:12px 17px;font-size:14.5px}
}
@media(prefers-reduced-motion:reduce){
  .aw-toast{transition:opacity .18s ease;transform:none}
}

/* Share a paper. */
.paper-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:18px}
.paper-actions .paper-link{margin-top:0}
.paper-share{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:0 14px;border:1px solid #cfdcef;border-radius:999px;background:#fff;color:#0b58bd;font-family:inherit;font-size:14.5px;font-weight:700;cursor:pointer;transition:background .16s ease,border-color .16s ease}
.paper-share:hover{background:#f2f7ff;border-color:#0b58bd}
.paper-share.copied{background:#eaf6ee;border-color:#1d7a44;color:#1d7a44}
.paper-share .material-symbols-outlined{font-size:17px}
.paper-share-url{flex:1 1 100%;min-width:0;padding:8px 11px;border:1px solid #cfdcef;border-radius:9px;font:inherit;font-size:13px;color:#41536b}
.paper-share-url[hidden]{display:none!important}
/* The clipboard-blocked fallback for the corner button, which has no actions
   row to sit in. */
.paper>.paper-share-url{display:block;width:calc(100% - 36px);margin:0 18px 16px}

/* Share without opening the paper first. Sits in the card's free corner —
   opposite the badge — and is a sibling of the header button rather than a
   child of it, since a nested button would break both. */
.paper-share-mini{position:absolute;top:11px;right:11px;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:0;width:34px;height:34px;min-height:0;padding:0;border:1px solid #e2e9f3;border-radius:50%;background:#fff;color:#5d6c80;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease}
.paper-share-mini:hover{background:#f2f7ff;border-color:#0b58bd;color:#0b58bd}
.paper-share-mini .material-symbols-outlined{font-size:18px}
.paper-share-mini.copied{background:#eaf6ee;border-color:#1d7a44;color:#1d7a44}
@media(max-width:720px){
  .paper-share-mini{top:9px;right:9px;width:32px;height:32px}
  .paper-top{padding-right:38px}
}
/* Sits on the same line as the copy button, and only drops below it when the
   row genuinely runs out of width. */
.paper-share-hint{margin:0;font-size:13.5px;line-height:1.4;color:#8492a6}
.paper-actions-share{margin-top:10px}
.lbl-short{display:none}
/* Below this the two labels stop fitting beside each other, so the paper link
   drops its "ต้นฉบับ"/"original" qualifier rather than wrapping to a new row. */
@media(max-width:430px){
  .lbl-full{display:none}
  .lbl-short{display:inline}
  .paper-actions{gap:8px 12px}
  .paper-summary-link,.paper-share{padding:0 14px;font-size:14px}
  .paper-share-hint{font-size:13px}
}
/* Our own write-up leads: a Thai summary is a softer entry than the English
   paper, so it gets the solid treatment and sits first. */
.paper-summary-link{display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:0 17px;border-radius:999px;background:#0b58bd;color:#fff;font-size:14.5px;font-weight:700;text-decoration:none;transition:background .16s ease}
.paper-summary-link:hover{background:#0a4ba1}
.paper-summary-link .material-symbols-outlined{font-size:17px}
