/* Smokable's additions to the shared ACGAO product CSS: the session control in the shared header,
   the sub-navigation (CoreView's cv-nav, renamed sm-nav), the product links row, and marketing extras.
   The product accent lives in /styles.css; nothing here changes the shared header or footer. */

/* `hidden` always hides, even on elements whose class sets a display. */
[hidden] { display: none !important; }

/* product.css gives .product-design a default accent; carry the product accent from /styles.css onto it. */
main.product-design { --product-accent: #fff3e6; }
/* Ember is the food (Design-Tokens.md, Rules): labels are quiet gray; the primary action is cream. */
.product-design .product-label, .product-design .product-section-label { color: #aaaabb; }

/* Session control, in .gh-head-actions after "Visit ACGAO" (Web.md, Header). */
/* It wraps (the name above Sign out) rather than push the header sideways at large text sizes. */
.session-control { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .4rem 1.2rem; min-width: 0; margin-left: 2rem; font-size: 1.4rem; }
.session-control form { margin: 0; }
.session-control .who { color: #d8d8e2; max-width: 22ch; overflow-wrap: anywhere; text-align: right; }
.btn.apple { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; border: 1px solid #f5f5f8; border-radius: 10px; background: #f5f5f8; color: #000; font: inherit; font-size: 1.4rem; font-weight: 600; line-height: 1.2; padding: 1rem 1.6rem; min-height: 44px; cursor: pointer; white-space: nowrap; transition: background .16s, border-color .16s; }
.btn.apple:hover { background: #d8d8e2; border-color: #d8d8e2; }
.btn.apple .apple-logo { width: 18px; height: 18px; flex: none; margin-top: -2px; }
.btn.apple.large { font-size: 1.6rem; padding: 1.2rem 2.4rem; min-height: 48px; }
.session-control .btn.ghost { background: transparent; border: 1px solid #80809a; border-radius: 10px; color: #f5f5f8; font: inherit; font-size: 1.4rem; font-weight: 600; padding: .8rem 1.4rem; min-height: 44px; cursor: pointer; }
.session-control .btn.ghost:hover { background: #2b2b3c; }
.session-control :focus-visible { outline: 2px solid #8ec5ff; outline-offset: 3px; }
@media (max-width: 767px) {
  .session-control { margin: 2.4rem 0 0; flex-direction: column; gap: 1.2rem; font-size: 1.6rem; }
  .session-control .who { max-width: 80vw; }
}
/* Large text on a tablet or laptop: the header's nav, its search, and the session control can't share one
   row, so the header takes its phone layout (styles.css, max-width 767px), keyed to the text size. At 100%
   text this never applies (47.9375em is 767px); at 200% it covers widths up to 1534px. */
@media (min-width: 768px) and (max-width: 47.9375em) {
  #gh-head { height: 64px; }
  #gh-head .gh-head-inner { column-gap: 0; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  #gh-head .gh-head-brand { align-items: center; display: grid; grid-template-columns: 1fr auto auto; height: 64px; }
  #gh-head .gh-head-brand .gh-search { display: inline-flex; }
  #gh-head .gh-burger { display: block; }
  #gh-head .gh-head-actions .gh-search { display: none; }
  #gh-head .gh-head-menu, #gh-head .gh-head-actions { justify-content: center; opacity: 0; position: fixed; visibility: hidden; }
  #gh-head .nav { align-items: center; flex-direction: column; gap: 20px; line-height: 1.4; }
  #gh-head .nav a { font-size: 2.6rem; font-weight: 600; }
  .is-head-open #gh-head { background: #1e1e2e; height: 100%; inset: 0; overflow-y: auto; position: fixed; z-index: 3999999; }
  .is-head-open #gh-head .gh-head-menu, .is-head-open #gh-head .gh-head-actions { opacity: 1; position: static; visibility: visible; }
  .session-control { margin: 2.4rem 0 0; flex-direction: column; gap: 1.2rem; font-size: 1.6rem; }
  .session-control .who { max-width: 80vw; text-align: center; }
  .sm-wordmark span { display: none; }
}

/* Sub-navigation. */
.sm-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 2rem; padding: 1.8rem 0; border-top: 1px solid #3b3b4d; border-bottom: 1px solid #3b3b4d; }
.product-design .sm-nav { margin-top: 2.4rem; }
.sm-wordmark, .dash .sm-wordmark { display: flex; align-items: center; gap: 1.6rem; color: #f5f5f8; font-size: 2rem; font-weight: 650; letter-spacing: -.03em; text-decoration: none; }
.sm-wordmark span { color: #aaaabb; font-size: 1.2rem; font-weight: 400; letter-spacing: 0; border-left: 1px solid #3b3b4d; padding-left: 1.6rem; }
.sm-nav > div { display: flex; flex-wrap: wrap; gap: .4rem 2.4rem; font-size: 1.3rem; }
.sm-nav > div a, .dash .sm-nav > div a { color: #aaaabb; text-decoration: none; padding: .6rem 0; border-bottom: 2px solid transparent; }
.sm-nav > div a:hover, .dash .sm-nav > div a:hover { color: #f5f5f8; opacity: 1; }
.sm-nav > div a[aria-current="page"], .dash .sm-nav > div a[aria-current="page"] { color: #f5f5f8; border-bottom-color: #fff3e6; }
.sm-nav a:focus-visible { outline: 2px solid #8ec5ff; outline-offset: 4px; }
@media (max-width: 767px) {
  .sm-wordmark span { display: none; }
  .sm-nav > div { gap: 1.6rem; }
}
@media (max-width: 359px) {
  .sm-nav { flex-wrap: wrap; gap: .8rem 1.6rem; }
  .sm-nav > div { gap: 1.4rem; }
}

/* Product links row at the end of every main. */
.sm-product-links { display: flex; flex-wrap: wrap; gap: .8rem 2.4rem; margin-top: 6.4rem; padding-top: 2.4rem; border-top: 1px solid #3b3b4d; font-size: 1.4rem; }
.sm-product-links a { color: #aaaabb; text-decoration: none; }
.sm-product-links a:hover, .sm-product-links a[aria-current="page"] { color: #f5f5f8; opacity: 1; }

/* Marketing extras. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sm-icon-stage { display: flex; align-items: center; justify-content: center; min-height: 440px; }
.sm-icon-stage img { width: min(100%, 320px); border-radius: 22%; box-shadow: 0 28px 70px rgb(0 0 0 / 28%); }
.sm-evidence { margin: 0; padding: 3.2rem; border: 1px solid #3b3b4d; border-radius: 20px; background: radial-gradient(ellipse at 80% 0%, color-mix(in srgb, var(--product-accent) 10%, transparent), transparent 60%), #171722; }
.sm-evidence ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.sm-evidence li { padding: 1.4rem 1.8rem; border: 1px solid #3b3b4d; border-radius: 12px; background: #252535; color: #f5f5f8; font-size: 1.6rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.sm-center .product-section-heading { margin-inline: auto; text-align: center; }
.product-design .sm-details-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-design .product-details .product-small { margin-top: 2.4rem; }
.sm-page-head { max-width: 760px; padding-block: 5.6rem 3.2rem; }
.sm-page-head .product-actions { margin-top: 2.4rem; }
.sm-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.sm-step { padding: 3rem; border: 1px solid #3b3b4d; border-radius: 16px; background: #252535; }
.product-design .sm-step h2 { font-size: 2.6rem; }
.sm-step p:not(.product-section-label) { margin-top: 1.4rem; color: var(--product-muted); font-size: 1.6rem; }
.sm-about { max-width: 68ch; padding-block: 2.4rem; border-top: 1px solid #3b3b4d; }
.product-design .sm-about h2 { font-size: 2.4rem; }
.sm-about p { margin-top: 1.2rem; color: var(--product-muted); }
.product-design .sm-trademarks h2 { font-size: 1.6rem; letter-spacing: 0; }
.sm-trademarks p { font-size: 1.4rem; }
.sm-search { display: grid; gap: .8rem; max-width: 520px; margin-bottom: 2.4rem; }
.sm-search label { color: #f5f5f8; font-size: 1.4rem; font-weight: 600; }
.sm-search-row { display: flex; gap: 1.2rem; }
.sm-search input { flex: 1; min-width: 0; min-height: 48px; padding: 1rem 1.4rem; border: 1px solid #80809a; border-radius: 10px; background: #252535; color: #f5f5f8; font: inherit; font-size: 1.6rem; }
.sm-search input:focus { outline: 2px solid #8ec5ff; outline-offset: 2px; }
.sm-table-wrap { overflow-x: auto; border: 1px solid #3b3b4d; border-radius: 16px; background: #252535; }
.sm-grills { width: 100%; border-collapse: collapse; font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.sm-grills th, .sm-grills td { padding: 1.2rem 1.6rem; text-align: left; border-bottom: 1px solid #3b3b4d; vertical-align: top; }
.sm-grills thead th { color: #aaaabb; font-size: 1.2rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; background: #2b2b3c; white-space: nowrap; }
.sm-grills tbody th { color: #f5f5f8; font-weight: 600; }
.sm-grills tbody tr:last-child > * { border-bottom: 0; }
.sm-grills tr[hidden] { display: none; }
.sm-sub { display: block; color: #aaaabb; font-size: 1.3rem; font-weight: 400; }
.sm-status { white-space: nowrap; font-weight: 600; }
.sm-status.ok { color: #57d08a; }
.sm-status.no { color: #f2b84b; }
.sm-count { margin-top: 1.2rem; color: #aaaabb; font-size: 1.4rem; }
@media (max-width: 899px) {
  .product-design .sm-details-2, .sm-steps { grid-template-columns: 1fr; }
  .sm-icon-stage { min-height: 0; }
  .sm-icon-stage img { width: min(100%, 220px); }
}
/* Phones: each grill is a card, its facts labeled, so Status needs no sideways scroll. */
@media (max-width: 767px) {
  .sm-table-wrap { overflow: visible; border: 0; border-radius: 0; background: none; }
  .sm-grills thead { display: none; }
  .sm-grills, .sm-grills tbody { display: block; }
  .sm-grills tr { display: grid; gap: .6rem; margin-bottom: .8rem; padding: 1.4rem 1.6rem; border: 1px solid #3b3b4d; border-radius: 14px; background: #252535; }
  .sm-grills tbody th, .sm-grills tbody td { display: block; padding: 0; border: 0; }
  .sm-grills tbody th { margin-bottom: .2rem; font-size: 1.6rem; }
  .sm-grills tbody td[data-label] { display: flex; justify-content: space-between; gap: 1.6rem; font-size: 1.4rem; }
  .sm-grills tbody td[data-label]::before { content: attr(data-label); color: #aaaabb; }
  .sm-grills tbody td.sm-grill-status { margin-top: .4rem; padding-top: 1rem; border-top: 1px solid #3b3b4d; }
  .sm-grills .sm-status { white-space: normal; }
}
@media (max-width: 599px) {
  .sm-evidence, .sm-step { padding: 2rem; }
  .sm-page-head { padding-block: 4rem 2.4rem; }
  .sm-grills th, .sm-grills td { padding: 1rem 1.2rem; }
  .sm-search-row { flex-direction: column; }
}

/* The home page's stage (Ember Curve): a smoke's curve as the ember ground, drawn inline, and the next
   smoke's plan as a card. One soft ember glow. */
.product-design .ec-stage { padding: 0; }
.ec-stage { position: relative; margin: 0; min-height: 0; border: 1px solid #3b3b4d; border-radius: 20px; background: #171722; overflow: hidden; box-shadow: 0 28px 70px rgb(0 0 0 / 28%); aspect-ratio: 18 / 13; }
.ec-curve { display: block; width: 100%; height: 100%; }
.ec-curve .glow-0 { stop-color: #ff6363; stop-opacity: .14; }
.ec-curve .glow-1 { stop-color: #ff6363; stop-opacity: 0; }
.ec-curve .g0 { stop-color: #ff7a68; } .ec-curve .g1 { stop-color: #ff6363; } .ec-curve .g2 { stop-color: #b8303f; }
.ec-curve .ec-grid { stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.ec-curve .ec-future { fill: rgba(255, 255, 255, .025); }
.ec-curve .ec-target { stroke: #ff6363; stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; opacity: .5; }
.ec-curve .ec-grill { fill: none; stroke: #b9b9c8; stroke-width: 2; stroke-linejoin: round; opacity: .72; }
.ec-curve .ec-rim { fill: none; stroke: #ff8a7a; stroke-width: 2.5; stroke-linejoin: round; }
.ec-curve .ec-stall { fill: none; stroke: #fff3e6; stroke-width: 2.5; stroke-linecap: round; }
.ec-curve .ec-now { stroke: #fff3e6; stroke-width: 2.5; }
.ec-curve .ec-projection { stroke: #ff6363; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0.1 11; }
.ec-curve .ec-ring { fill: #171722; stroke: #ff6363; stroke-width: 3; }
.ec-curve .ec-dot { fill: #fff3e6; stroke: #ff6363; stroke-width: 3; }
.ec-curve .ec-label { fill: #f5f5f8; font: 600 17px -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.ec-curve .ec-quiet { fill: #aaaabb; font-weight: 500; }
.ec-curve .ec-goal-narrow { display: none; }
.ec-plan { position: absolute; left: 4.5%; top: 6%; width: min(244px, 46%); padding: 1.4rem 1.6rem; border-radius: 16px; background: #252535; box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), 0 14px 34px rgb(0 0 0 / 35%); }
.ec-plan p { margin: 0; }
.ec-plan-title { display: flex; align-items: center; gap: .7rem; color: #f5f5f8; font-size: 1.5rem; font-weight: 650; }
.ec-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: #aaaabb; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ec-plan-cap { margin-top: 1rem !important; color: #aaaabb; font-size: 1.1rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.ec-plan-time { color: #f5f5f8; font: 600 4rem/1.05 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ec-plan-time small { font-size: 1.6rem; color: #aaaabb; letter-spacing: 0; margin-left: .3rem; }
.ec-plan-time span { margin-left: .8rem; color: #aaaabb; font: 400 1.4rem -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: 0; }
.ec-plan-serve { margin-top: .4rem !important; color: #aaaabb; font-size: 1.3rem; }
@media (max-width: 899px) {
  .ec-stage { aspect-ratio: 4 / 3; }
}
@media (max-width: 599px) {
  .ec-stage { aspect-ratio: auto; display: flex; flex-direction: column-reverse; }
  .ec-curve { height: auto; aspect-ratio: 4 / 3; }
  .ec-plan { position: static; width: auto; margin: 1.2rem 1.2rem 0; padding: 1.2rem 1.4rem; }
  .ec-plan-time { font-size: 3.2rem; }
  .ec-curve .ec-label { font-size: 30px; }
  /* At this size the target's label takes two lines to stay right of the Now line. */
  .ec-curve .ec-goal-wide { display: none; }
  .ec-curve .ec-goal-narrow { display: inline; }
}
