/* Tee-time call-outs + availability grid (docs/specs/tee-time-callouts.md).
   Its own file so it doesn't collide with portal.css edits. Every tap target is
   >= 44px; inputs/selects inherit the 16px .field styles (no iOS zoom). */

.tt-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:44px;padding:10px 18px;border-radius:7px;border:1px solid var(--line);
  background:var(--paper);color:var(--forest-ink,#1E3A2B);font-family:inherit;font-size:0.9375rem;font-weight:600;
  cursor:pointer;text-decoration:none;transition:background .15s,border-color .15s;
}
.tt-btn:hover{border-color:var(--forest);}
.tt-btn:disabled{opacity:.55;cursor:default;}
.tt-btn.primary{background:var(--forest);color:var(--on-dark,#F4F0E6);border-color:var(--forest);}
.tt-btn.primary:hover{background:var(--forest-deep);}
.tt-btn.primary.on{background:var(--gold);border-color:var(--gold);color:var(--forest-deep);}
.tt-btn.on-out{background:rgba(154,74,58,0.08);border-color:rgba(154,74,58,0.35);color:var(--danger-text, #9a4a3a);}
.tt-btn.danger{color:var(--danger-text, #9a4a3a);}
.tt-btn.danger:hover{border-color:#9a4a3a;}
.tt-btn.pulse{box-shadow:0 0 0 0 rgba(201,162,77,.7);animation:tt-pulse 1.6s ease-out 3;}
@keyframes tt-pulse{to{box-shadow:0 0 0 12px rgba(201,162,77,0);}}
@media (prefers-reduced-motion: reduce){.tt-btn.pulse{animation:none;outline:2px solid var(--gold);outline-offset:2px;}}
.tt-tall{min-height:44px;}
.tt-linkbtn{background:none;border:none;padding:0;font:inherit;cursor:pointer;min-height:44px;}

.tt-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;}
.tt-foot{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-start;}

.tt-list{display:flex;flex-direction:column;gap:14px;}
.tt-card{display:flex;gap:16px;align-items:flex-start;padding-bottom:14px;border-bottom:1px solid var(--line);}
.tt-list .tt-card:last-child{border-bottom:none;padding-bottom:0;}
.card-b > .tt-card{border-bottom:none;padding-bottom:0;}
.tt-card.cancelled .tt-main{opacity:.6;}
.tt-date{flex:0 0 58px;display:flex;flex-direction:column;align-items:center;padding:8px 0;border-radius:8px;
  background:var(--forest);color:var(--on-dark,#F4F0E6);line-height:1.05;}
.tt-dow,.tt-mon{font-family:'Spline Sans Mono',monospace;font-size:0.625rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-soft);}
.tt-day{font-family:'Cormorant Garamond',serif;font-size:1.75rem;}
.tt-main{flex:1;min-width:0;}
.tt-when{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-family:'Cormorant Garamond',serif;font-size:1.5rem;color:var(--forest-ink,#1E3A2B);line-height:1.1;}
.tt-when a{color:inherit;text-decoration:none;}
.tt-venue{font-weight:600;margin-top:3px;overflow-wrap:anywhere;}
.tt-meta{font-size:0.8125rem;color:var(--sage);margin-top:2px;}
.tt-note{font-size:0.875rem;color:var(--ink);margin-top:8px;font-style:italic;overflow-wrap:anywhere;}
.tt-who{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;}
.tt-pill{font-size:0.8125rem;padding:4px 10px;border-radius:100px;background:rgba(30,58,43,0.08);color:var(--forest-ink,#1E3A2B);}
.tt-pill.host{background:var(--forest);color:var(--on-dark,#F4F0E6);}
.tt-pill.me{background:var(--gold);color:var(--forest-deep);}
.tt-pill.empty{background:none;border:1px dashed var(--line);color:var(--sage);}
.tt-cant{font-size:0.75rem;color:var(--sage);margin-top:6px;}
.tt-err{background:rgba(154,74,58,0.1);color:var(--danger-text, #9a4a3a);padding:10px 14px;border-radius:3px;margin-top:10px;font-size:0.875rem;}
.tt-ok{background:rgba(30,58,43,0.08);color:var(--forest-ink,#1E3A2B);padding:10px 14px;border-radius:3px;margin-top:10px;font-size:0.875rem;}

.tt-form .field{margin-bottom:16px;}
.tt-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;}
@media(max-width:480px){.tt-grid{grid-template-columns:1fr;}}
.tt-chips{display:flex;flex-wrap:wrap;gap:8px;}
.tt-chip{min-height:44px;min-width:72px;padding:8px 12px;border-radius:7px;border:1px solid var(--line);
  background:var(--cream);color:var(--forest-ink,#1E3A2B);font-family:inherit;font-size:0.9375rem;cursor:pointer;}
.tt-chip.on{background:var(--forest);color:var(--on-dark,#F4F0E6);border-color:var(--forest);}

.tt-polls{display:flex;flex-direction:column;}
.tt-poll-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-height:52px;padding:8px 0;
  border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink);}
.tt-poll-row:last-child{border-bottom:none;}
.tt-poll-t{font-weight:600;flex:1 1 160px;}

/* What's next (dashboard): compact rows */
.tt-mini{display:flex;flex-direction:column;margin-top:14px;border-top:1px solid var(--line);}
/* Rows may wrap: a no-wrap venue line would set the dashboard grid's min-content
   and push the whole page wider than a 375px phone. */
.tt-mini a{display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px;min-height:48px;padding:6px 0;border-bottom:1px solid var(--line);
  text-decoration:none;color:var(--ink);font-size:0.875rem;}
.tt-mini a:last-child{border-bottom:none;}
.tt-mini .w{font-weight:600;white-space:nowrap;}
.tt-mini .v{flex:1 1 120px;min-width:0;overflow-wrap:anywhere;color:var(--sage);}

/* Availability grid: days down, times across */
.av-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
.av-grid{border-collapse:separate;border-spacing:4px;width:100%;table-layout:fixed;min-width:calc(54px + var(--av-cols) * 52px);}
.av-grid th{font-weight:400;padding:0;}
.av-grid thead th:first-child,.av-day-h{width:54px;}
.av-th-time{font-family:'Spline Sans Mono',monospace;font-size:0.6875rem;color:var(--sage);text-align:center;white-space:nowrap;padding-bottom:4px !important;}
.av-day-h{text-align:left;}
.av-dow{display:inline-block;width:30px;font-family:'Spline Sans Mono',monospace;font-size:0.625rem;letter-spacing:.08em;text-transform:uppercase;color:var(--sage);}
.av-day{font-family:'Cormorant Garamond',serif;font-size:1.25rem;color:var(--forest-ink,#1E3A2B);}
.av-grid td{padding:0;}
.av-cell{
  --av-a:0;width:100%;min-width:44px;height:44px;border-radius:6px;border:1px solid var(--line);
  background:rgba(30,58,43,calc(var(--av-a) * 0.92));color:var(--on-dark,#F4F0E6);
  font-family:'Spline Sans Mono',monospace;font-size:0.875rem;font-weight:600;cursor:pointer;position:relative;
}
.av-cell.light{color:var(--forest-ink,#1E3A2B);}
.av-cell.mine{border:2px solid var(--gold);}
.av-cell.mine::after{content:"✓";position:absolute;top:1px;right:4px;font-size:0.625rem;color:var(--gold);}
.av-cell.best{box-shadow:0 0 0 2px var(--paper),0 0 0 4px var(--gold);}
.av-cell:disabled{cursor:default;}
.av-legend{font-size:0.75rem;margin-top:12px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.av-key{display:inline-block;width:14px;height:14px;border-radius:3px;margin-left:8px;}
.av-key.mine{border:2px solid var(--gold);}
.av-key.best{box-shadow:0 0 0 1px var(--paper),0 0 0 3px var(--gold);}

/* Calendar page: feed URLs are long unbroken strings. With nowrap they set the
   page's min width (501px on main; 711px with the private feed), so a phone
   scrolled sideways. Let them wrap. */
.cal-url{min-width:0;}
.cal-url code{white-space:normal;overflow-wrap:anywhere;min-width:0;}

/* Call-out email switch (whole row is the 44px+ tap target) */
.tt-switch{display:flex;gap:14px;align-items:flex-start;min-height:44px;cursor:pointer;}
.tt-switch input{width:22px;height:22px;margin-top:2px;flex:0 0 22px;accent-color:var(--forest);}
.tt-switch b{display:block;font-weight:600;}
.tt-switch .dim{display:block;font-size:0.8125rem;margin-top:2px;}

/* The post button stays reachable at any text size (persona walk 2026-12-01: at the largest text the
   form ran several screens and the button was at the bottom). On a phone it sticks above the tab bar. */
.tt-post{align-items:center;justify-content:flex-end;}   /* right: clear of the report flag, bottom left */
.tt-sees{flex-basis:100%;margin:0;font-size:0.875rem;color:var(--ink);}
/* A sticky child needs no clipping ancestor: the form's card drops its overflow:hidden. */
.card:has(.tt-post){overflow:visible;}
@media(max-width:920px){
  .tt-post{position:sticky;bottom:calc(var(--tt-tabbar, 4.75rem) + env(safe-area-inset-bottom));z-index:5;margin:14px -12px 0;padding:10px 12px;
    background:var(--paper);border-top:1px solid var(--line);box-shadow:0 -6px 14px rgba(0,0,0,0.06);}
}

/* First screen (N17, 2026-12-02): the actions come before any list. Post a tee time is the one
   filled primary, full width on a phone; Find a time and Schedule sit under it, half width each. */
.tt-first{display:flex;flex-direction:column;gap:10px;margin:0 0 14px;max-width:34rem;}
.tt-first .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;text-align:center;}
.tt-first-main{width:100%;font-size:1.0625rem;}
.tt-first-row{display:flex;gap:10px;flex-wrap:wrap;}
.tt-first-row .btn{flex:1 1 7rem;}
.tt-alt{margin:-8px 0 14px;font-size:1rem;}
.tt-alt .textlink{font-size:1rem;min-height:44px;display:inline-flex;align-items:center;}
.tt-board-line{margin:0 0 var(--gap);color:var(--sage);font-size:0.9375rem;}
.tt-alt button.textlink{background:none;border:0;border-bottom:1px solid transparent;padding:0;cursor:pointer;font-family:inherit;}
