/* p-ifl-other: cluster "other" for the Industry 75 flow pages (recruitment, agriculture, churches, government, telecom,
   education franchises, immigration law, B2B e-commerce, DTC brands). Loads after p-indflow (spec INDUSTRY-75-SPEC.md §2, §4.9).
   Accent: green-teal (#00B2A9 to #3FB97A). Prefix ifo-. No three.js, no WebGL, no 3D: CSS and inline SVG only.
   Parts: (1) season ribbon hero art .ifo-rib, (2) season planner .ifo-plan, (3) form-to-record mapper .ifo-map.
   Hooks and per-page rules: spec "Cluster other build notes". */

body.pg {
  --ifl-accent: #00B2A9;
  --ifl-accent-ink: #0B7A70;
  --ifl-accent-on: #fff;
  --ifl-tint: #E6F7F2;
  --ifl-band: linear-gradient(135deg, #061A2E 0%, #0A3A4F 52%, #0B5E4A 100%);
  --ifl-band-ink: #7BE3C4;
  --ifo-grad: linear-gradient(90deg, #00B2A9, #3FB97A);
  --ifo-leaf: #3FB97A;
  --ifo-sun: #FFB81C;
}

/* ============ 1. Season ribbon (hero art) ============
   <figure class="ifl-hero__art ifo-art" style="--ifl-art-ratio: 6 / 5">
     <div class="ifo-rib" style="--cols:12">
       bar · months (.ifo-rib__m x cols) · bands (.ifo-rib__band > span style="--s;--n") · rows (.ifo-rib__row > .ifo-rib__bar style="--s;--n")
       · now marker (.ifo-rib__now style="--m") · floating note (.ifo-rib__card)
   --s = first column (1-based), --n = columns spanned, --m = column of the highlighted moment (1-based). */
.ifl-hero__art.ifo-art { aspect-ratio: auto; display: flex; align-items: center; }
.ifo-rib { position: relative; width: 100%; padding: 16px 16px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--ifl-line);
  box-shadow: var(--ifl-shadow); color: var(--ifl-ink); --cols: 12; }
.ifo-rib::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; border-radius: 22px 22px 0 0; background: var(--ifo-grad); }
.ifo-rib__bar { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; font: 700 13px/1.3 var(--f-body); }
.ifo-rib__bar img { flex: none; }
.ifo-rib__bar span { color: var(--ifl-muted); font-weight: 600; }
.ifo-rib__bar .ifl-sample { margin-left: auto; }
.ifo-rib__grid { position: relative; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: 3px; row-gap: 7px; }
.ifo-rib__m { padding: 5px 0; border-radius: 6px; background: var(--ifl-paper); text-align: center; font: 700 11px/1.2 var(--f-body); color: var(--ifl-muted); letter-spacing: .02em; }
.ifo-rib__m.is-now { background: var(--ifl-accent-ink); color: #fff; }
.ifo-rib__band, .ifo-rib__row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: 3px; }
.ifo-rib__band > span { grid-column: var(--s) / span var(--n); padding: 5px 7px; border-radius: 8px; background: var(--ifl-tint); color: var(--ifl-accent-ink);
  font: 700 11.5px/1.25 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ifo-rib__band > span.is-sun { background: #FFF1CC; color: #7A4F00; }
.ifo-rib__row-l { grid-column: 1 / -1; justify-self: start; position: relative; z-index: 1; margin: 2px 0 -3px; padding-right: 6px; border-radius: 4px; background: #fff; font: 600 11.5px/1.2 var(--f-body); color: var(--ifl-muted); }
.ifo-rib__row > i { grid-column: var(--s) / span var(--n); position: relative; height: 16px; border-radius: 999px; background: var(--ifo-grad);
  transform-origin: left center; }
.ifo-rib__row > i.is-alt { background: #9FD9C8; }
.ifo-rib__row > i.is-end::after { content: ""; position: absolute; right: -2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ifo-sun); box-sizing: border-box; }
.ifo-rib__now { position: absolute; top: 0; bottom: -4px; left: calc((var(--m) - 1) * (100% + 3px) / var(--cols)); width: calc((100% - (var(--cols) - 1) * 3px) / var(--cols));
  border-radius: 8px; outline: 2px dashed var(--ifl-accent-ink); outline-offset: 1px; pointer-events: none; }
.ifo-rib__card { position: relative; margin: 14px 0 0 auto; max-width: 270px; padding: 11px 13px; border-radius: 14px; background: #082238; color: #fff;
  font: 500 13px/1.45 var(--f-body); box-shadow: 0 16px 30px -22px rgba(8, 34, 56, .8); }
.ifo-rib__card b { display: block; color: #FFD36B; font: 700 12px/1.3 var(--f-body); letter-spacing: .02em; margin-bottom: 2px; }
.ifo-rib__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; padding: 0; list-style: none; font: 600 12px/1.3 var(--f-body); color: var(--ifl-muted); }
.ifo-rib__legend li { display: inline-flex; align-items: center; gap: 6px; }
.ifo-rib__legend i { width: 18px; height: 8px; border-radius: 999px; background: var(--ifo-grad); }
.ifo-rib__legend i.is-alt { background: #9FD9C8; }
.ifo-rib__legend i.is-end { width: 10px; height: 10px; border: 3px solid var(--ifo-sun); background: #fff; box-sizing: border-box; }
@media (max-width: 560px) {
  .ifo-rib { padding: 14px 10px 14px; }
  .ifo-rib__m { font-size: 9.5px; letter-spacing: 0; }
  .ifo-rib__band > span { font-size: 10px; line-height: 1.15; padding: 4px; white-space: normal; text-overflow: clip; overflow-wrap: break-word; hyphens: auto; display: flex; align-items: center; }
  .ifo-rib__card { max-width: none; }
}
/* one-pass grow-in of the bars (CSS animation, JS only sets the --d stagger; no JS or reduced motion = static end state) */
@keyframes ifo-grow { from { transform: scaleX(.02); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .ifl-js .ifo-rib__row > i { animation: ifo-grow .9s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0) * 90ms) both; }
}

/* ============ 2. Season planner (signature interactive 1) ============
   <div class="ifo-plan" data-ifl-tabs data-ifo-plan>
     <div class="ifo-plan__tabs" role="tablist" aria-label="Months"> <button role="tab" id aria-controls aria-selected>Jan<small>Plan</small></button> ... </div>
     <div class="ifo-plan__track" aria-hidden="true"><i></i></div>
     <div class="ifo-plan__p" role="tabpanel" id aria-labelledby tabindex="0"> <h3>Month: headline</h3><p>..</p>
       <ul class="ifo-plan__teams"><li><b>Team</b><span>What they do in Zoho</span><span class="ifl-chips">..</span></li></ul> </div> ...
   Works for 4-12 tabs (months, phases or deadlines). Base tabs JS handles keys; cluster JS moves the track. */
.ifo-plan { --n: 12; padding: clamp(18px, 3vw, 28px); border-radius: 24px; background: #fff; border: 1px solid var(--ifl-line); box-shadow: var(--ifl-shadow); }
.ifo-plan__tabs { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.ifo-plan__tabs [role="tab"] { min-height: 48px; padding: 6px 2px; border: 1px solid var(--ifl-line); border-radius: 12px; background: var(--ifl-paper); color: var(--ifl-ink);
  font: 700 13px/1.15 var(--f-body); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.ifo-plan__tabs [role="tab"] small { font: 600 10.5px/1.1 var(--f-body); color: var(--ifl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ifo-plan__tabs [role="tab"]:hover { border-color: var(--ifl-accent); }
.ifo-plan__tabs [role="tab"][aria-selected="true"] { background: var(--ifl-accent-ink); border-color: var(--ifl-accent-ink); color: #fff; }
.ifo-plan__tabs [role="tab"][aria-selected="true"] small { color: #D9F5EC; }
.ifo-plan__tabs [role="tab"]:focus-visible { outline: 3px solid var(--ifl-accent-ink); outline-offset: 2px; }
.ifo-plan__track { position: relative; height: 6px; margin: 12px 0 18px; border-radius: 999px; background: var(--ifl-paper); overflow: hidden; }
.ifo-plan__track i { position: absolute; inset: 0 auto 0 0; width: calc(var(--at, 1) / var(--n) * 100%); border-radius: inherit; background: var(--ifo-grad); transition: width .45s ease; }
.ifo-plan__p { padding: 4px 2px 0; }
.ifo-plan__p:focus-visible { outline: 3px solid var(--ifl-accent-ink); outline-offset: 4px; border-radius: 10px; }
.ifo-plan__p + .ifo-plan__p { margin-top: 22px; }
.ifo-plan.is-js .ifo-plan__p + .ifo-plan__p { margin-top: 0; }
.ifo-plan__p h3 { margin: 0 0 6px; font: 700 19px/1.3 var(--f-display); color: var(--ifl-ink); }
.ifo-plan__p > p { margin: 0 0 14px; color: var(--ifl-body); }
.ifo-plan__teams { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ifo-plan__teams li { padding: 14px; border-radius: 16px; background: var(--ifl-tint); display: flex; flex-direction: column; gap: 6px; }
.ifo-plan__teams b { font: 700 14.5px/1.3 var(--f-body); color: var(--ifl-ink); }
.ifo-plan__teams li > span:not(.ifl-chips) { font-size: 14.5px; line-height: 1.5; color: var(--ifl-body); }
.ifo-plan__teams .ifl-chips { margin-top: auto; }
@media (max-width: 760px) {
  .ifo-plan__tabs { grid-template-columns: repeat(min(var(--n), 6), minmax(0, 1fr)); }
  .ifo-plan__tabs [role="tab"] small { display: none; }
}

/* ============ 3. Form-to-record mapper (signature interactive 2) ============
   <div class="ifo-map" data-ifo-map>
     <div class="ifo-map__form" role="group" aria-label="Sample form fields"> head (.ifo-map__h) ·
       <button type="button" class="ifo-map__f" data-ifo-field="k" data-ifo-to="recruit crm" aria-pressed="false"><span>Label</span><b>Sample value</b></button> ...
       <button type="button" class="ifo-map__run" data-ifo-run>Send the sample form</button> </div>
     <div class="ifo-map__out">
       <ul class="ifo-map__apps"><li data-ifo-app="recruit"><img ..>Zoho Recruit</li> ...</ul>
       <div class="ifo-map__p" data-ifo-panel="k"><p class="ifo-map__lands">Lands in ..</p><h3>..</h3><p>..</p><p class="ifo-map__fires"><b>Triggers</b> ..</p></div> ...
     </div> </div>
   No JS: every panel shows in a list. With JS: one panel at a time, the matching app tiles light up. */
.ifo-map { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
.ifo-map__form { padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--ifl-line); box-shadow: var(--ifl-shadow); display: grid; gap: 8px; }
.ifo-map__h { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 700 14px/1.3 var(--f-body); color: var(--ifl-ink); }
.ifo-map__h .ifl-sample { margin-left: auto; }
.ifo-map__f { width: 100%; min-height: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; text-align: left;
  border: 1px solid var(--ifl-line); border-radius: 12px; background: var(--ifl-paper); color: var(--ifl-ink); font: 600 14px/1.3 var(--f-body); cursor: pointer; }
.ifo-map__f b { font: 700 13.5px/1.3 var(--f-body); color: var(--ifl-body); text-align: right; }
.ifo-map__f:hover { border-color: var(--ifl-accent); }
.ifo-map__f[aria-pressed="true"] { background: var(--ifl-tint); border-color: var(--ifl-accent-ink); box-shadow: inset 4px 0 0 var(--ifl-accent-ink); }
.ifo-map__f:focus-visible, .ifo-map__run:focus-visible { outline: 3px solid var(--ifl-accent-ink); outline-offset: 2px; }
.ifo-map__run { justify-self: start; min-height: 44px; margin-top: 6px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--ifl-accent-ink); color: #fff;
  font: 700 14px/1.2 var(--f-body); cursor: pointer; display: none; }
.ifo-map.is-js .ifo-map__run { display: inline-flex; }
.ifo-map__out { display: grid; gap: 14px; }
.ifo-map__apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.ifo-map__apps li { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--ifl-line); background: #fff;
  font: 700 13.5px/1.25 var(--f-body); color: var(--ifl-ink); transition: background .25s, border-color .25s, transform .25s; }
.ifo-map__apps li.is-ext { border-style: dashed; color: var(--ifl-muted); }
.ifo-map__apps li.is-on { background: var(--ifl-tint); border-color: var(--ifl-accent-ink); transform: translateY(-2px); }
.ifo-map__apps li.is-ext.is-on { background: #FFF7E0; border-color: #B07A00; }
.ifo-map__p { padding: 18px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--ifl-line); }
.ifo-map__p + .ifo-map__p { margin-top: 0; }
.ifo-map__lands { margin: 0 0 6px; font: 700 12.5px/1.3 var(--f-body); color: var(--ifl-accent-ink); letter-spacing: .02em; text-transform: uppercase; }
.ifo-map__p h3 { margin: 0 0 6px; font: 700 18px/1.3 var(--f-display); color: var(--ifl-ink); }
.ifo-map__p p { margin: 0; color: var(--ifl-body); font-size: 15.5px; line-height: 1.55; }
.ifo-map__fires { margin-top: 10px !important; padding-top: 10px; border-top: 1px dashed var(--ifl-line); font-size: 14.5px !important; }
.ifo-map__fires b { color: var(--ifl-ink); margin-right: 4px; }
.ifo-map.is-js .ifo-map__p { box-shadow: var(--ifl-shadow); }
.ifo-map__sum { margin: 0; font: 600 14px/1.45 var(--f-body); color: var(--ifl-muted); min-height: 1.45em; }
@media (max-width: 899px) {
  .ifo-map { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ifo-map__apps li, .ifo-plan__track i { transition: none; }
  .ifo-map__apps li.is-on { transform: none; }
}

/* ============ small page-scoped extras ============ */
.ifo-switch .mk-score { margin-top: 8px; }
.ifo-boundary { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.ifo-boundary li { padding: 16px 18px; border-radius: 18px; border: 1px dashed #94A3B8; background: #fff; }
.ifo-boundary b { display: block; margin-bottom: 4px; font: 700 15.5px/1.3 var(--f-body); color: var(--ifl-ink); }
.ifo-boundary span { font-size: 14.5px; line-height: 1.5; color: var(--ifl-body); }

/* ============ sample card height cap (spec §1.2: max 340px on laptop) ============
   Slightly tighter spacing for the card types this cluster uses most, so each card stays within the cap. */
body.pg .ifl-scr__body { padding: 12px 14px; }
body.pg .ifl-scr__foot { padding-bottom: 12px; }
body.pg .ifl-form { gap: 7px; }
body.pg .ifl-form__row { gap: 8px; }
body.pg .ifl-thread { gap: 6px; }
body.pg .ifl-msg { padding: 6px 10px; line-height: 1.4; }
body.pg .ifl-chk { gap: 5px; }
body.pg .ifl-chk li { padding: 6px 10px; }
body.pg .ifl-doc { padding: 12px 14px; }
body.pg .ifl-doc__lines { margin: 6px 0 10px; }

/* QA 2026-11-15: calendar blocks clipped their labels (fixed 26px rows, overflow hidden). Rows now grow to fit the label;
   on phones the ruled background is dropped because grown rows no longer line up with it. */
body.pg .ifl-cal { grid-auto-rows: minmax(26px, auto); }
body.pg .ifl-cal__b { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 760px) {
  body.pg .ifl-cal { background: none; }
  body.pg .ifl-cal__b { padding: 3px 5px; font-size: 11px; }
}

/* QA 2026-11-15: a 4-card mid-kit wipe sits 2 x 2 on wide screens instead of 3 + 1 */
@media (min-width: 900px) {
  body.pg .mk-wipe:has(> .mk-wipe__item:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
