/* ═══════════ FLAGSHIP TOOLS ═══════════
   Editorial styling for the three tools in post 11: #gtc-calc, #grc-check, #gpk-checklist.
   Loaded only on post 11 (inc/flagship.php). Overrides each tool's own inline <style>,
   which stays in the post as a fallback. Square corners, thin rules, Outfit for figures and
   labels, DM Sans for text, savanna gold for state. No icons.
   Roll back: delete this file (the enqueue skips it when missing). */

.bw-is-flagship .bwfs-entry.bw-entry>section:is(.gtc,.grc,.gpk){
  --tl-ink:var(--bw-ink,#1C2116);--tl-muted:#5E6555;--tl-line:#E2DCCB;--tl-field:#D6CFBC;
  --tl-gold:var(--bw-lime,#E8B94A);--tl-tag:var(--bw-tag,#8A6A1F);--tl-green:var(--bw-green,#1F2A1A);
  --tl-tint:#FAF6EC;--tl-warn:#9A4A12;
  background:var(--tl-tint);border-top:3px solid var(--tl-gold);padding:34px 40px 28px;
  font-family:'DM Sans',system-ui,sans-serif;font-size:16px;line-height:1.55;color:var(--tl-ink)
}
.bw-is-flagship .bwfs-entry.bw-entry>section:is(.gtc,.grc,.gpk)::before{content:none;display:none}
.bw-is-flagship section:is(.gtc,.grc,.gpk)>*+*{margin-top:0}

/* heading and lede */
.bw-is-flagship section:is(.gtc,.grc,.gpk) :is(.gtc-title,.grc-title,.gpk-title){font-family:'Outfit',sans-serif;font-size:27px;font-weight:700;line-height:1.2;letter-spacing:-.018em;color:var(--tl-ink);margin:0 0 8px}
.bw-is-flagship section:is(.gtc,.grc,.gpk) :is(.gtc-lede,.grc-lede,.gpk-lede){font-size:17px;line-height:1.55;color:var(--tl-muted);margin:0 0 24px;max-width:640px}

/* labels and fields */
.bw-is-flagship section:is(.gtc,.grc,.gpk) :is(.gtc-lbl,.grc-lbl,.gpk-lbl){font-family:'Outfit',sans-serif;font-size:12px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--tl-tag);margin:0 0 7px}
.bw-is-flagship section:is(.gtc,.grc,.gpk) :is(select,input[type=number]){
  appearance:none;-webkit-appearance:none;width:100%;min-height:48px;margin:0;padding:10px 40px 10px 14px;
  font-family:'DM Sans',sans-serif;font-size:16.5px;font-weight:500;color:var(--tl-ink);
  background-color:#fff;border:1px solid var(--tl-field);border-radius:0;box-shadow:none;
  transition:border-color .15s ease
}
.bw-is-flagship section:is(.gtc,.grc,.gpk) select{
  cursor:pointer;text-overflow:ellipsis;
  background-image:linear-gradient(45deg,transparent 50%,var(--tl-ink) 50%),linear-gradient(135deg,var(--tl-ink) 50%,transparent 50%);
  background-position:calc(100% - 20px) 21px,calc(100% - 15px) 21px;background-size:5px 5px,5px 5px;background-repeat:no-repeat
}
.bw-is-flagship section:is(.gtc,.grc,.gpk) input[type=number]{padding-right:14px;font-variant-numeric:tabular-nums}
.bw-is-flagship section:is(.gtc,.grc,.gpk) :is(select,input[type=number]):hover{border-color:var(--tl-ink)}
.bw-is-flagship section:is(.gtc,.grc,.gpk) :is(select,input,button,summary):focus-visible{outline:2px solid var(--tl-gold);outline-offset:2px}
.bw-is-flagship section:is(.gtc,.grc,.gpk) input[type=checkbox]{accent-color:var(--tl-green);width:20px;height:20px;margin:2px 0 0;flex:none;cursor:pointer}

/* two-column body: inputs left, live result right */
.bw-is-flagship section:is(.gtc,.grc) :is(.gtc-body,.grc-body){display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:28px;align-items:start;border-top:1px solid var(--tl-ink);padding-top:22px}
.bw-is-flagship section:is(.gtc,.grc) :is(.gtc-form,.grc-form){display:grid;gap:18px;border:0;padding:0;margin:0}
.bw-is-flagship section.gtc .gtc-form{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:14px}
.bw-is-flagship section.grc .grc-form{grid-template-columns:minmax(0,1fr)}

/* result panel */
.bw-is-flagship section:is(.gtc,.grc) :is(.gtc-out,.grc-res){background:#fff;border:1px solid var(--tl-line);border-top:2px solid var(--tl-ink);padding:22px 24px 20px;margin:0}

/* ── cost calculator ── */
.bw-is-flagship section.gtc .gtc-chks{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;border:0;padding:0;margin:16px 0 0}
.bw-is-flagship section.gtc .gtc-chk{display:flex;gap:12px;align-items:flex-start;min-height:44px;padding:10px 0;font-size:15.5px;line-height:1.45;color:var(--tl-ink);border-top:1px solid var(--tl-line);cursor:pointer}
.bw-is-flagship section.gtc .gtc-chk:has(input:disabled){color:#9A9E92;cursor:not-allowed}
.bw-is-flagship section.gtc .gtc-chk:has(input:disabled) input{cursor:not-allowed}
.bw-is-flagship section.gtc .gtc-diff{font-family:'Outfit',sans-serif;font-size:19px;font-weight:600;line-height:1.35;letter-spacing:-.005em;color:var(--tl-ink);margin:0 0 18px;padding:0 0 16px;border-bottom:1px solid var(--tl-line)}
.bw-is-flagship section.gtc .gtc-res{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;border:0;padding:0;margin:0}
.bw-is-flagship section.gtc .gtc-col{border:0;padding:0 0 0 20px;border-left:1px solid var(--tl-line)}
.bw-is-flagship section.gtc .gtc-col:first-child{padding:0 20px 0 0;border-left:0}
.bw-is-flagship section.gtc .gtc-cname{font-family:'Outfit',sans-serif;font-size:14.5px;font-weight:700;line-height:1.35;color:var(--tl-ink);margin:0 0 10px;min-height:2.7em}
.bw-is-flagship section.gtc .gtc-col dl{margin:0;display:grid;grid-template-columns:auto;gap:0}
.bw-is-flagship section.gtc .gtc-col dt{font-family:'Outfit',sans-serif;font-size:11.5px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--tl-tag);margin:0}
.bw-is-flagship section.gtc .gtc-col dd{margin:2px 0 12px;font-family:'Outfit',sans-serif;font-weight:600;font-size:18px;line-height:1.2;color:var(--tl-ink);font-variant-numeric:tabular-nums lining-nums}
.bw-is-flagship section.gtc .gtc-col dd:first-of-type{font-size:clamp(28px,3.2vw,36px);font-weight:700;letter-spacing:-.02em;margin-bottom:10px}
.bw-is-flagship section.gtc .gtc-col p:not(.gtc-cname){font-size:14px;line-height:1.5;color:var(--tl-muted);margin:4px 0 0}

/* ── readiness checker ── */
.bw-is-flagship section.grc .grc-verdict{font-family:'Outfit',sans-serif;font-size:clamp(26px,3vw,32px);font-weight:700;letter-spacing:-.02em;line-height:1.1;text-transform:none;margin:0 0 6px}
.bw-is-flagship section.grc .grc-verdict.ok{color:#3C5A23}
.bw-is-flagship section.grc .grc-verdict.mid{color:var(--tl-tag)}
.bw-is-flagship section.grc .grc-verdict.no{color:var(--tl-warn)}
.bw-is-flagship section.grc .grc-head{font-family:'Outfit',sans-serif;font-size:18px;font-weight:600;line-height:1.35;color:var(--tl-ink);margin:0 0 14px;padding-bottom:14px;border-bottom:1px solid var(--tl-line)}
.bw-is-flagship section.grc #grc-steps{margin:0}
.bw-is-flagship section.grc .grc-step{position:relative;margin:0;padding:0 0 10px 18px;border:0;font-size:15.5px;line-height:1.55;color:var(--tl-ink)}
.bw-is-flagship section.grc .grc-step:last-child{padding-bottom:0}
.bw-is-flagship section.grc .grc-step::before{content:'';position:absolute;left:0;top:.6em;width:7px;height:7px;background:var(--tl-gold)}

/* ── collapsible reference tables (content stays in the HTML) ── */
.bw-is-flagship section:is(.gtc,.grc) details{margin:24px 0 0;border-top:1px solid var(--tl-ink);border-bottom:1px solid var(--tl-line)}
.bw-is-flagship section:is(.gtc,.grc,.gpk) summary{list-style:none;cursor:pointer;-webkit-user-select:none;user-select:none}
.bw-is-flagship section:is(.gtc,.grc,.gpk) summary::-webkit-details-marker{display:none}
.bw-is-flagship section:is(.gtc,.grc) details>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;padding:12px 0;font-family:'Outfit',sans-serif;font-size:16.5px;font-weight:600;color:var(--tl-ink)}
.bw-is-flagship section:is(.gtc,.grc,.gpk) details>summary::after{content:'Show';flex:none;font-family:'Outfit',sans-serif;font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--tl-tag);border-bottom:1px solid var(--tl-gold);padding-bottom:1px}
.bw-is-flagship section:is(.gtc,.grc,.gpk) details[open]>summary::after{content:'Hide'}
.bw-is-flagship section:is(.gtc,.grc,.gpk) details>summary:hover::after{color:var(--tl-ink)}
.bw-is-flagship section:is(.gtc,.grc) :is(.gtc-wrap,.grc-wrap){overflow-x:auto;padding:0 0 18px}
.bw-is-flagship section:is(.gtc,.grc) table{font-size:15px;margin:0;border-top:0;border-bottom:1px solid var(--tl-ink);background:transparent}
.bw-is-flagship section:is(.gtc,.grc) caption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bw-is-flagship section:is(.gtc,.grc) :is(th,td){padding:10px 14px 10px 0;border-bottom:1px solid var(--tl-line)}
.bw-is-flagship section:is(.gtc,.grc) thead th{font-size:11.5px;letter-spacing:.13em;color:var(--tl-tag);border-bottom:1px solid var(--tl-ink)}
.bw-is-flagship section:is(.gtc,.grc) tbody th{font-family:'Outfit',sans-serif;font-weight:600;white-space:normal}
.bw-is-flagship section.gtc td:nth-child(2){font-variant-numeric:tabular-nums;white-space:nowrap}

/* notes */
.bw-is-flagship section:is(.gtc,.grc,.gpk) :is(.gtc-note,.grc-note,.gpk-note){font-size:13.5px;line-height:1.55;color:var(--tl-muted);margin:14px 0 0;max-width:760px}
.bw-is-flagship section:is(.gtc,.grc,.gpk) :is(.gtc-note,.grc-note,.gpk-note)+:is(.gtc-note,.grc-note,.gpk-note){margin-top:6px}

/* ── packing checklist ── */
.bw-is-flagship section.gpk .gpk-bar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:end;border:0;border-top:1px solid var(--tl-ink);padding:22px 0 0;margin:0}
.bw-is-flagship section.gpk .gpk-bar button{width:auto;min-height:48px;padding:10px 20px;font-family:'Outfit',sans-serif;font-size:15px;font-weight:600;color:var(--tl-ink);background:transparent;border:1px solid var(--tl-ink);border-radius:0;cursor:pointer;white-space:nowrap;transition:background .15s ease,color .15s ease}
.bw-is-flagship section.gpk .gpk-bar button:hover{background:var(--tl-ink);color:#fff}
.bw-is-flagship section.gpk .gpk-prog{display:flex;align-items:center;gap:16px;margin:22px 0 6px}
.bw-is-flagship section.gpk .gpk-count{flex:none;margin:0;font-family:'Outfit',sans-serif;font-size:17px;font-weight:700;color:var(--tl-ink);font-variant-numeric:tabular-nums}
.bw-is-flagship section.gpk .gpk-meter{display:block;flex:1;height:4px;background:var(--tl-line);overflow:hidden}
.bw-is-flagship section.gpk .gpk-meter>*{display:block;height:100%;width:0;background:var(--tl-gold);transition:width .25s ease}
.bw-is-flagship section.gpk .gpk-group{border:0;border-top:1px solid var(--tl-ink);padding:0;margin:14px 0 0}
.bw-is-flagship section.gpk .gpk-group+.gpk-group{margin-top:0}
.bw-is-flagship section.gpk .gpk-group:last-of-type{border-bottom:1px solid var(--tl-line)}
.bw-is-flagship section.gpk .gpk-group>summary{display:flex;align-items:baseline;gap:14px;min-height:54px;padding:15px 0 13px}
.bw-is-flagship section.gpk .gpk-gh{flex:1;margin:0;font-family:'Outfit',sans-serif;font-size:17.5px;font-weight:600;letter-spacing:-.005em;text-transform:none;color:var(--tl-ink)}
.bw-is-flagship section.gpk .gpk-gc{font-size:14px;color:var(--tl-muted);font-variant-numeric:tabular-nums}
.bw-is-flagship section.gpk .gpk-items{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:32px}
.bw-is-flagship section.gpk .gpk-extra[hidden]{display:none}
.bw-is-flagship section.gpk .gpk-item{display:flex;gap:12px;align-items:flex-start;min-height:44px;padding:12px 0;border:0;border-top:1px solid var(--tl-line);cursor:pointer}
.bw-is-flagship section.gpk .gpk-item[hidden]{display:none}
.bw-is-flagship section.gpk .gpk-txt{flex:1;min-width:0}
.bw-is-flagship section.gpk .gpk-txt strong{display:inline;font-family:'Outfit',sans-serif;font-size:16px;font-weight:600;line-height:1.35;color:var(--tl-ink)}
.bw-is-flagship section.gpk .gpk-tag{display:inline;margin-left:8px;font-family:'Outfit',sans-serif;font-size:10.5px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--tl-tag);vertical-align:1px}
.bw-is-flagship section.gpk .gpk-why{display:block;margin-top:3px;font-size:14.5px;line-height:1.5;color:var(--tl-muted)}
.bw-is-flagship section.gpk .gpk-item input:checked+.gpk-txt strong{text-decoration:line-through;text-decoration-color:var(--tl-gold);text-decoration-thickness:2px;color:var(--tl-muted)}
.bw-is-flagship section.gpk .gpk-more{display:inline-block;width:auto;text-align:left;min-height:44px;margin:0 0 6px;padding:10px 0;font-family:'Outfit',sans-serif;font-size:15px;font-weight:600;color:var(--tl-ink);background:none;border:0;border-bottom:0;cursor:pointer;text-decoration:underline;text-decoration-color:var(--tl-gold);text-decoration-thickness:2px;text-underline-offset:4px}
.bw-is-flagship section.gpk .gpk-more[hidden]{display:none}
.bw-is-flagship section.gpk .gpk-more:hover{text-decoration-color:var(--tl-ink)}

/* ── tablet and phone ── */
@media (max-width:860px){
  .bw-is-flagship section:is(.gtc,.grc) :is(.gtc-body,.grc-body){grid-template-columns:minmax(0,1fr);gap:20px}
}
@media (max-width:640px){
  .bw-is-flagship .bwfs-entry.bw-entry>section:is(.gtc,.grc,.gpk){padding:26px 16px 22px}
  .bw-is-flagship section:is(.gtc,.grc,.gpk) :is(.gtc-title,.grc-title,.gpk-title){font-size:23px}
  .bw-is-flagship section:is(.gtc,.grc,.gpk) :is(.gtc-lede,.grc-lede,.gpk-lede){font-size:16px;margin-bottom:18px}
  .bw-is-flagship section:is(.gtc,.grc) :is(.gtc-out,.grc-res){padding:18px 16px 16px}
  .bw-is-flagship section.gtc .gtc-diff{font-size:17px}
  .bw-is-flagship section.gtc .gtc-col{padding-left:14px}
  .bw-is-flagship section.gtc .gtc-col:first-child{padding-right:14px}
  .bw-is-flagship section.gtc .gtc-col dd:first-of-type{font-size:26px}
  .bw-is-flagship section.gtc .gtc-cname{font-size:13.5px}
  .bw-is-flagship section.gpk .gpk-bar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .bw-is-flagship section.gpk .gpk-bar .gpk-sel{grid-column:1/-1}
  .bw-is-flagship section.gpk .gpk-bar button{width:100%;padding:10px 8px}
  .bw-is-flagship section.gpk .gpk-items{grid-template-columns:minmax(0,1fr)}
  .bw-is-flagship section:is(.gtc,.grc) table{font-size:14.5px}
}
@media (max-width:380px){
  .bw-is-flagship section.gtc .gtc-res{grid-template-columns:minmax(0,1fr)}
  .bw-is-flagship section.gtc .gtc-col,.bw-is-flagship section.gtc .gtc-col:first-child{padding:0;border-left:0}
  .bw-is-flagship section.gtc .gtc-col+.gtc-col{border-top:1px solid var(--tl-line);padding-top:14px;margin-top:4px}
  .bw-is-flagship section.gtc .gtc-cname{min-height:0}
}
@media (prefers-reduced-motion:reduce){
  .bw-is-flagship section.gpk .gpk-meter>*,.bw-is-flagship section:is(.gtc,.grc,.gpk) :is(select,input,button){transition:none}
}
@media print{
  .bw-is-flagship .bwfs-entry.bw-entry>section:is(.gtc,.grc,.gpk){background:none;padding:0;border-top:1px solid #000}
  .bw-is-flagship section.gpk .gpk-extra[hidden],.bw-is-flagship section.gpk .gpk-item[hidden]{display:flex}
  .bw-is-flagship section.gpk .gpk-extra[hidden]{display:grid}
  .bw-is-flagship section.gpk :is(.gpk-bar,.gpk-more,.gpk-meter){display:none}
  .bw-is-flagship section:is(.gtc,.grc,.gpk) details>summary::after{content:none}
}
