
/* COMPONENT OWNER V2.5
   Scope: theme helper/icon cards + hub choice cards only.
   Purpose: deterministic geometry across 5 viewports.
   Legacy files remain present for safe rollback; this owner loads last.
*/

/* ---------- shared safety ---------- */

.hub-choice-grid { min-width:0; }


.hub-choice-card {
  box-sizing:border-box !important;
  min-width:0 !important;
}


.hub-choice-card strong,
.hub-choice-card small {
  max-width:100% !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
}

/* ---------- helper / icon navigation ---------- */










/* compact helper navigation intentionally has no secondary copy */


/* ---------- hub choice navigation ---------- */
.hub-choice-grid {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:12px !important;
}

.hub-choice-card {
  display:grid !important;
  grid-template-columns:54px minmax(0,1fr) 18px !important;
  gap:11px !important;
  align-items:center !important;
  height:auto !important;
  min-height:82px !important;
  overflow:visible !important;
  padding:12px 14px !important;
}

.hub-choice-card .choice-visual {
  display:grid !important;
  place-items:center !important;
  width:54px !important;
  height:54px !important;
  min-width:54px !important;
  overflow:hidden !important;
}

.hub-choice-card strong {
  display:block !important;
  font-size:.96rem !important;
  line-height:1.12 !important;
  white-space:normal !important;
  overflow:visible !important;
}

.hub-choice-card small {
  display:block !important;
  margin-top:3px !important;
  font-size:.72rem !important;
  line-height:1.15 !important;
  white-space:nowrap !important;
  overflow:visible !important;
}

/* ---------- Mobile portrait ---------- */
@media (max-width:767px) and (orientation:portrait) {
  
  
  
  

  .hub-choice-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:9px !important;
  }
  .hub-choice-card {
    grid-template-columns:40px minmax(0,1fr) 12px !important;
    gap:7px !important;
    min-height:72px !important;
    padding:9px 8px !important;
  }
  .hub-choice-card .choice-visual {
    width:40px !important;height:40px !important;min-width:40px !important;
  }
  .hub-choice-card strong {font-size:.82rem !important;line-height:1.1 !important;}
  .hub-choice-card small {font-size:.64rem !important;line-height:1.1 !important;}
}

/* ---------- Mobile landscape ---------- */
@media (max-width:950px) and (max-height:500px) and (orientation:landscape) {
  
  .hub-choice-grid {
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:8px !important;
  }
  
  
  

  .hub-choice-card {
    grid-template-columns:38px minmax(0,1fr) 12px !important;
    gap:6px !important;
    min-height:64px !important;
    padding:7px 6px !important;
  }
  .hub-choice-card .choice-visual {width:38px !important;height:38px !important;min-width:38px !important;}
  .hub-choice-card strong {font-size:.76rem !important;white-space:nowrap !important;}
  .hub-choice-card small {font-size:.6rem !important;}
}

/* ---------- Tablet portrait ---------- */
@media (min-width:768px) and (max-width:1023px) and (orientation:portrait) {
  
  .hub-choice-grid {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}

/* ---------- Tablet landscape ---------- */
@media (min-width:768px) and (max-width:1180px) and (orientation:landscape) and (min-height:501px) {
  
  .hub-choice-grid {grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
}

/* TM-JUMP COMPACT NAV OWNER V2.9 — same compact-navigation contract */






/* COMPACT NAVIGATION MIGRATION V3.4 — approved explicit ownership only */
.hub-choice-card .choice-arrow{justify-self:end!important}


/* HARMONIZED HELPER MOBILE PORTRAIT OWNER V1.0 */

/* COMPACT_CHOICE. Single owner. Tokens copied from canonical visual DNA.
   Variants own context sizing and placement; shared icon owns rendering only. */
.compact-choice {
 --cc-paper:#fffdf8;--cc-line:#dcd5c8;--cc-ink:#10231e;--cc-icon-bg:#073f38;
 --cc-focus:#176f73;--cc-radius:16px;--cc-icon-radius:16px;
 display:grid;min-width:0;grid-template-columns:repeat(4,minmax(0,1fr));
}
.compact-choice .cc-card {box-sizing:border-box;min-width:0;background:var(--cc-paper);color:var(--cc-ink);border:1px solid var(--cc-line);text-decoration:none;}
.compact-choice .cc-icon {box-sizing:border-box;position:relative;display:grid;place-items:center;padding:8px;border-radius:var(--cc-icon-radius);background:var(--cc-icon-bg);border:1px solid rgba(255,255,255,.10);box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 8px 18px rgba(0,0,0,.10);overflow:hidden;flex-shrink:0;}
.compact-choice .cc-icon img {display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;filter:none;margin:auto;transform:none;}
.compact-choice .cc-copy {min-width:0;max-width:100%;}
.compact-choice strong,.compact-choice h3 {max-width:100%;min-width:0;word-break:normal;overflow-wrap:normal;}
.compact-choice a:focus-visible {outline:3px solid var(--cc-focus);outline-offset:3px;}
/* Navigation: in-page links and their affordance. */
.compact-choice--navigation {gap:14px;align-items:center;margin:0 0 38px;font-size:.92rem;line-height:1.5;max-width:100%;}
.compact-choice--navigation .cc-card {display:grid;grid-template-columns:54px minmax(0,1fr) 18px;gap:10px;align-items:center;min-height:82px;padding:12px 14px;border-radius:14px;box-shadow:0 5px 16px #1f292310;font-weight:900;}
.compact-choice--navigation .cc-icon {width:54px;height:54px;margin:0 0 2px;font-size:.72rem;line-height:1.5;color:#075a47;text-transform:uppercase;letter-spacing:.08em;}
.compact-choice--navigation .cc-copy {margin:0 0 2px;font-size:.72rem;line-height:1.5;color:#075a47;text-transform:uppercase;letter-spacing:.08em;}
.compact-choice--navigation strong {display:block;font-size:15px;font-weight:900;line-height:1.14;margin:0 0 3px;color:var(--cc-ink);white-space:normal;}
.compact-choice--navigation .cc-arrow {display:block;color:var(--cc-focus);font-size:.72rem;line-height:1.5;margin:0 0 2px;text-transform:uppercase;letter-spacing:.08em;}
/* Helper: summary cards. Problem: linked hub choices. Separate geometry contracts. */
.compact-choice--helper {gap:12px;align-items:stretch;margin:0;}
.compact-choice--helper .cc-card {display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:14px 10px;border-radius:var(--cc-radius);text-align:center;}
.compact-choice--helper .cc-icon {width:54px;height:54px;flex-basis:54px;margin:0 auto 9px;}
.compact-choice--helper h3 {display:block;margin:0;font-size:.92rem;line-height:1.12;white-space:nowrap;text-align:center;font-weight:700;}
.compact-choice--helper .cc-card>p {display:none;}
.compact-choice--problem {gap:12px;align-items:stretch;margin:0;}
.compact-choice--problem .cc-card {display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:14px 10px;border-radius:var(--cc-radius);text-align:center;}
.compact-choice--problem .cc-icon {width:54px;height:54px;flex-basis:54px;margin:0 auto 9px;}
.compact-choice--problem h3 {display:block;margin:0;font-size:.92rem;line-height:1.12;white-space:nowrap;text-align:center;font-weight:700;}
.compact-choice--problem .cc-card>p {display:none;}
/* Category: retains descriptive copy and its canonical desktop arrangement. */
.compact-choice--category {gap:16px;margin:18px 0 0;--cc-line:#ddd5c6;--cc-ink:#07181b;}
.compact-choice--category .cc-card {display:flex;gap:14px;align-items:flex-start;padding:18px;border-radius:18px;}
.compact-choice--category .cc-icon {width:54px;height:54px;flex:0 0 54px;}
.compact-choice--category strong {display:block;font-size:1.05rem;font-weight:700;line-height:normal;}
.compact-choice--category p {margin:7px 0 0;color:#59635e;line-height:1.4;font-size:.9rem;}
/* Mobile portrait. Approved helper footprint is preserved. */
@media (max-width:767px) and (orientation:portrait) {
 .compact-choice--navigation {gap:7px;margin:10px 0 34px;}
 .compact-choice--navigation .cc-card {display:flex;flex-direction:column;justify-content:flex-start;gap:6px;min-height:0;padding:10px 4px;text-align:center;}
 .compact-choice--navigation .cc-icon {width:40px;height:40px;margin:0;}
 .compact-choice--navigation .cc-copy {margin:0;width:100%;text-transform:none;letter-spacing:normal;}
 .compact-choice--navigation strong {font-size:clamp(.66rem,2.9vw,.78rem);font-weight:700;line-height:1.12;margin:0;}
 .compact-choice--navigation .cc-arrow {display:none;}
 .compact-choice--helper {gap:7px;--cc-icon-radius:11px;}
 .compact-choice--helper .cc-card {padding:10px 4px;}
 .compact-choice--helper .cc-icon {width:40px;height:40px;flex-basis:40px;margin-bottom:7px;}
 .compact-choice--helper h3 {font-size:clamp(.66rem,2.9vw,.78rem);}
 .compact-choice--problem {gap:7px;--cc-icon-radius:11px;}
 .compact-choice--problem .cc-card {padding:10px 4px;}
 .compact-choice--problem .cc-icon {width:40px;height:40px;flex-basis:40px;margin-bottom:7px;}
 .compact-choice--problem h3 {font-size:clamp(.66rem,2.9vw,.78rem);}
 .compact-choice--category {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 .compact-choice--category .cc-card {flex-direction:column;align-items:center;text-align:center;padding:14px 10px;gap:9px;}
 .compact-choice--category .cc-icon {width:40px;height:40px;flex-basis:40px;}
 .compact-choice--category .cc-card>div {min-width:0;max-width:100%;}
 .compact-choice--category strong {font-size:.92rem;}
 .compact-choice--category p {font-size:.82rem;}
}
/* Short landscape contract. */
@media (max-width:950px) and (max-height:500px) and (orientation:landscape) {
 .compact-choice--navigation {gap:8px;margin:10px 0 34px;}
 .compact-choice--navigation .cc-card {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:0;padding:8px 4px;text-align:center;}
 .compact-choice--navigation .cc-icon {width:38px;height:38px;margin:0;}
 .compact-choice--navigation strong {font-size:.68rem;font-weight:700;line-height:1.12;margin:0;}
 .compact-choice--navigation .cc-copy {margin:0;text-transform:none;letter-spacing:normal;}
 .compact-choice--navigation .cc-arrow {display:none;}
 .compact-choice--helper {gap:8px;}
 .compact-choice--helper .cc-card {padding:8px 4px;}
 .compact-choice--helper .cc-icon {width:38px;height:38px;flex-basis:38px;margin-bottom:5px;}
 .compact-choice--helper h3 {font-size:.68rem;}
 .compact-choice--problem {gap:8px;}
 .compact-choice--problem .cc-card {padding:8px 4px;}
 .compact-choice--problem .cc-icon {width:38px;height:38px;flex-basis:38px;margin-bottom:5px;}
 .compact-choice--problem h3 {font-size:.68rem;}
 .compact-choice--category .cc-card {flex-direction:column;align-items:center;padding:14px 10px;gap:9px;text-align:center;}
 .compact-choice--category .cc-icon {width:38px;height:38px;flex-basis:38px;}
 .compact-choice--category .cc-card>div {min-width:0;max-width:100%;}
 .compact-choice--category strong {font-size:.92rem;}
 .compact-choice--category p {font-size:.82rem;}
}
/* Tablet portrait retains helper/problem golden geometry. Navigation fits four choices. */
@media (min-width:768px) and (max-width:1023px) and (orientation:portrait) {
 .compact-choice--navigation {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:10px 0 34px;}
 .compact-choice--navigation .cc-card {grid-template-columns:54px minmax(0,1fr) 18px;}
 .compact-choice--navigation strong {font-size:15px;}
 .compact-choice--category {grid-template-columns:repeat(2,minmax(0,1fr));}
 .compact-choice--category .cc-card>div {min-width:0;}
}
/* Tablet landscape: preserve typography, provide room for the longest labels. */
@media (min-width:768px) and (max-width:1180px) and (orientation:landscape) and (min-height:501px) {
 .compact-choice--navigation .cc-card {padding:12px 10px;}
}
/* Desktop uses the canonical base variant contracts above. */

/* SOLUTION_CARD — Batch B sole owner. Desktop Golden is retained.
   Outer placement belongs to solution-grid; media/badge/copy belong to card. */
.solution-grid {display:grid;grid-template-columns:1fr 1fr;gap:18px;min-width:0;max-width:100%;}
.solution-card {min-width:0;background:var(--hp-paper);border:1px solid var(--hp-line);border-radius:18px;overflow:hidden;box-shadow:0 7px 20px #1f292312;}
.solution-card>img {width:100%;height:clamp(230px,24vw,300px);aspect-ratio:auto;object-fit:cover;object-position:center;display:block;}
.sc-copy {display:grid;grid-template-columns:48px 1fr;gap:12px;padding:18px;}
.sc-number {width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--hp-teal);color:var(--hp-dark);font-weight:900;font-size:1.1rem;}
.solution-card h3 {font-size:1.25rem;margin:0 0 7px;line-height:1.1;}
.solution-card p {margin:0;color:var(--hp-muted);}
/* Explicit phone landscape and tablet portrait states preserve approved geometry. */
@media (max-width:950px) and (max-height:500px) and (orientation:landscape) {
 .solution-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 .solution-card {height:auto;}
 .solution-card h3 {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;}
}
@media (min-width:768px) and (max-width:1023px) and (orientation:portrait) {
 .solution-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
 .solution-card {height:auto;}
 .solution-card h3 {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;}
}
/* Tablet landscape and desktop use the base Golden geometry. */
@media (min-width:1024px) and (max-width:1199px) {
 .solution-grid {grid-template-columns:1fr 1fr;gap:18px;}
}
@media (min-width:1200px) {
 .solution-grid {grid-template-columns:1fr 1fr;gap:18px;}
}
/* Phone portrait: stable badge/title grid, full reading width for description.
   Existing font sizes remain unchanged; the final odd card retains normal width. */
@media (max-width:767px) and (orientation:portrait) {
 .solution-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 .solution-grid>.solution-card:last-child:nth-child(odd) {grid-column:1/-1;width:calc((100% - 10px)/2);justify-self:center;}
 .solution-card {display:flex;flex-direction:column;min-height:0;height:auto;max-width:100%;}
 .solution-card>img {height:auto;min-height:0;aspect-ratio:4/3;flex:0 0 auto;}
 .sc-copy {display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;padding:10px;align-content:start;min-width:0;max-width:100%;height:auto;min-height:0;overflow:visible;}
 .sc-copy>div {display:contents;}
 .sc-number {width:30px;height:30px;font-size:.78rem;margin:0;}
 .solution-card h3 {align-self:center;min-width:0;max-width:100%;font-size:.86rem;line-height:1.12;margin:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal;hyphens:none;}
 .solution-card p {grid-column:1/-1;font-size:.7rem;line-height:1.28;margin:0;overflow-wrap:normal;word-break:normal;hyphens:none;}
}
