/*
 * idinsayit Podcasts: the app sheet and the app page (brief 14.7). Loaded only on a page
 * that printed a button opening the sheet, and on /podcasts/app/.
 *
 * Every colour, typeface and step of spacing is the theme's own token. The one value named
 * here is the dark ground behind the sheet, the same one the expanded player stands on
 * (pod.css, "expand"). Sizes of type are the ones pod.css and site.css already use: the
 * panel heading, the tab line, the small caps heading, the field, the small sans line.
 *
 * Order: the layer and the sheet, Close, the content (heading, choice, line, links, the
 * apps, another app, the subscriber's tools), the page, print.
 */

/* ---- the layer and the sheet ---------------------------------------------------- */
.idz-pod-apps[hidden]{display:none!important}
.idz-pod-apps{position:fixed;inset:0;z-index:99991;display:grid;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  padding:max(var(--s4),env(safe-area-inset-top)) 16px max(var(--s4),env(safe-area-inset-bottom));background:rgba(10,9,8,.86)}
/* margin:auto centres the sheet both ways, and lets a sheet taller than the screen scroll from its top. */
.idz-pod-apps-sheet{position:relative;box-sizing:border-box;width:100%;max-width:30rem;min-width:0;margin:auto;
  padding:var(--s6) var(--s5) var(--s5);background:var(--paper);color:var(--ink);text-align:center}
html.idz-pod-apps-lock{overflow:hidden}

/* ---- Close: the bare icon, oxblood on paper, no ring ----------------------------- */
.idz-pod-apps-close{position:absolute;top:0;right:0;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:0;
  background:none;color:var(--accent);cursor:pointer}
.idz-pod-apps-close svg{display:block;width:24px;height:24px;flex:none}
.idz-pod-apps-close:hover{color:var(--ink)}
.idz-pod-apps-close:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}

/* ---- the content ------------------------------------------------------------------ */
.idz-pod-apps-body{position:relative;min-width:0}
.idz-pod-apps-body [hidden]{display:none!important}
.idz-pod-apps-h{margin:0 auto;max-width:24ch;font-family:var(--display);font-size:clamp(1.3rem,2.2vw,1.7rem);line-height:1.08}
.idz-pod-apps-h:focus{outline:none}
.idz-pod-apps-vh{position:absolute;left:0;top:0;width:1px;height:1px;margin:0;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Watch or Listen: the site's tab line. */
.idz-pod-apps-form{display:flex;justify-content:center;gap:0 var(--s5);min-width:0;margin:var(--s3) 0 0;padding:0;border:0;
  font-family:var(--sans);font-size:11.5px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;line-height:1.5}
.idz-pod-apps-form label{position:relative;display:block;cursor:pointer}
.idz-pod-apps-form input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
/* The letter-spacing leaves a space after the last letter; the same space before the first keeps the word centred over its rule. */
.idz-pod-apps-form span{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding-left:.16em;
  color:var(--ink-soft);border-block:2px solid transparent}
.idz-pod-apps-form label:hover span{color:var(--ink)}
.idz-pod-apps-form input:checked + span{color:var(--ink);border-bottom-color:var(--accent)}
.idz-pod-apps-form input:focus-visible + span{outline:2px solid var(--accent);outline-offset:3px}

.idz-pod-apps-line{margin:var(--s3) 0 0;font-family:var(--text);line-height:1.5;color:var(--ink-soft);text-wrap:pretty}
.idz-pod-apps-join{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 var(--s4);margin:var(--s1) 0 0;
  font-family:var(--sans);font-size:12px;letter-spacing:.06em;line-height:1.5}
.idz-pod-apps-join a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.idz-pod-apps-join a:hover{color:var(--accent)}

/* The apps: the site's own button, one to a line, its name centred both ways. */
.idz-pod-apps-list{list-style:none;display:grid;gap:var(--s2);margin:var(--s4) 0 0;padding:0}
.idz-pod-apps-list li{margin:0;padding:0;min-width:0}
.idz-pod-apps-btn.btn{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;margin:0;text-align:center;text-decoration:none}

/* Another app: the address and Copy, joined as the site joins a field and its button. */
.idz-pod-apps-other{margin:var(--s5) 0 0;padding:var(--s4) 0 0;border-top:1px solid var(--rule)}
.idz-pod-apps-h3{margin:0;font-family:var(--sans);font-size:11.5px;font-weight:500;letter-spacing:.18em;text-transform:uppercase;line-height:1.5;color:var(--ink)}
.idz-pod-apps-copyrow{display:flex;flex-wrap:nowrap;align-items:stretch;gap:0;margin:var(--s3) 0 0;min-width:0}
.idz-pod-apps-field{flex:1 1 auto;box-sizing:border-box;width:0;min-width:0;margin:0;padding:var(--s2) var(--s3);background:var(--paper);color:var(--ink);
  border:1px solid var(--ink);border-radius:0;box-shadow:none;font-family:var(--sans);font-size:15px;line-height:1.4;text-align:left;text-overflow:ellipsis;
  -webkit-appearance:none;appearance:none}
.idz-pod-apps-field:focus{outline:2px solid var(--accent);outline-offset:-2px;position:relative;z-index:1}
/* Both words lie in one cell, so the button is as wide as the longer and never changes width. */
/* The button's left edge lies on the field's right edge: one line between them, as on the site's joined forms. */
.idz-pod-apps-copy.btn{flex:0 0 auto;display:inline-grid;place-items:center;margin:0 0 0 -1px;white-space:nowrap}
.idz-pod-apps-copy.btn > span{grid-area:1 / 1}
.idz-pod-apps-copy-b,.idz-pod-apps-copy.is-done .idz-pod-apps-copy-a{visibility:hidden}
.idz-pod-apps-copy.is-done .idz-pod-apps-copy-b{visibility:visible}
.idz-pod-apps-help{margin:var(--s3) 0 0;font-family:var(--text);font-size:.96rem;line-height:1.5;color:var(--ink-soft);text-wrap:pretty}

/* A subscriber's own tools, and the two questions asked in place. */
.idz-pod-apps-tools{margin:var(--s4) 0 0}
.idz-pod-apps-toolrow{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 var(--s4);margin:0;
  font-family:var(--sans);font-size:12px;letter-spacing:.06em;line-height:1.5}
.idz-pod-apps-text{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:0;border:0;border-radius:0;background:none;color:var(--ink);
  font:inherit;letter-spacing:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em;cursor:pointer}
.idz-pod-apps-text:hover{color:var(--accent)}
.idz-pod-apps-text:disabled{opacity:.3;cursor:default}
.idz-pod-apps-confirm{margin:var(--s3) 0 0}
.idz-pod-apps-confirm p{margin:0;font-family:var(--text);line-height:1.5;color:var(--ink-soft);text-wrap:pretty}
.idz-pod-apps-confirm .idz-pod-apps-pair{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--s2);margin-top:var(--s3)}
.idz-pod-apps-pair .btn{display:inline-flex;align-items:center;justify-content:center;margin:0}
/* The outlined button sets its own outline: .btn--quiet is not loaded on these pages. */
.idz-pod-apps-quiet.btn{background:none;color:var(--ink);border:1px solid var(--ink)}
.idz-pod-apps-quiet.btn:hover,.idz-pod-apps-quiet.btn:focus-visible{background:var(--tint);color:var(--ink);border-color:var(--ink)}
.idz-pod-apps-note{margin:var(--s2) 0 0;font-family:var(--sans);font-size:13px;line-height:1.5;color:var(--ink)}
.idz-pod-apps-note:empty{display:none}
.idz-pod-apps-note.is-error{color:var(--accent)}

/* While a subscriber's own links are on their way, nothing that will change is shown or can be pressed. */
.idz-pod-apps-body[aria-busy=true] :is(.idz-pod-apps-line,.idz-pod-apps-join,.idz-pod-apps-list,.idz-pod-apps-other,.idz-pod-apps-tools,.idz-pod-apps-confirm){visibility:hidden}

/* ---- the page: /podcasts/app/ ------------------------------------------------------ */
.idz-pod-apps-page{box-sizing:border-box;width:100%;max-width:30rem;min-width:0;margin-inline:auto;padding-block:var(--s6) var(--s7);text-align:center}
.idz-pod-apps-page .idz-pod-apps-h{max-width:17ch;font-size:clamp(1.8rem,3.2vw,2.7rem);line-height:1.04;letter-spacing:-.015em}
.idz-pod-apps-page .idz-pod-apps-form{margin-top:var(--s4)}

@media (max-width:519px){
  .idz-pod-apps-sheet{padding:var(--s6) var(--s4) var(--s5)}
}

@media print{
  .idz-pod-apps{display:none!important}
}

/* The code for a phone's camera, on a computer: ink on paper, 176 px. */
.idz-pod-apps-qr{margin-top:var(--s5);padding-top:var(--s5);border-top:1px solid var(--rule);text-align:center}
.idz-pod-apps-qr[hidden]{display:none}
.idz-pod-apps-qr-code{width:176px;height:176px;margin:0 auto var(--s3)}
.idz-pod-apps-qr-code svg{display:block;width:100%;height:100%}
.idz-pod-apps-qr-code svg rect{fill:var(--paper)}
.idz-pod-apps-qr-code svg path{fill:var(--ink)}

/* ---- 27 Nov 2026: More apps (a dropdown on every device) --------------------------------------------------
   A label in the sheet's small capitals, then the site's own dropdown (square, 1px ink, the site's arrow) with
   its Open button joined to it as the address and Copy are joined below. 44px, the height of the sheet's fields. */
.idz-pod-apps-more{margin:var(--s5) 0 0;padding:var(--s4) 0 0;border-top:1px solid var(--rule);text-align:center}
.idz-pod-apps-more > label{display:block}
.idz-pod-apps-more-row{display:flex;flex-wrap:nowrap;align-items:stretch;gap:0;margin:var(--s3) 0 0;min-width:0}
.idz-pod-apps-more select{flex:1 1 auto;box-sizing:border-box;width:0;min-width:0;height:44px;margin:0;padding:0 var(--s6) 0 var(--s3);background-color:var(--paper);color:var(--ink);
  border:1px solid var(--ink);border-radius:0;box-shadow:none;font-family:var(--sans);font-size:15px;line-height:42px;text-align:left;text-overflow:ellipsis;
  -webkit-appearance:none;appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%);
  background-position:calc(100% - 18px) 52%,calc(100% - 13px) 52%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.idz-pod-apps-more select:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.idz-pod-apps-more-go.btn{flex:0 0 auto;display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:44px;min-height:0;margin:0;padding-block:0;text-decoration:none}
.idz-pod-apps-more-go[hidden],.idz-pod-apps-more[hidden]{display:none}
.idz-pod-apps-more .idz-pod-apps-help{margin-top:var(--s3)}
.idz-pod-apps-body[aria-busy=true] .idz-pod-apps-more{visibility:hidden}

/* The Account page's card: its button takes the look and measures of Save in the first card (the owner, 27 Nov 2026): the card's full width, 44px, centred by its box. */
.idz-acct-card--pod .idz-cta{margin-bottom:0}
.idz-acct-card--pod .idz-cta .btn{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:0;height:44px;margin:0;padding-block:0;text-align:center;font-size:11.5px;letter-spacing:.16em}
