/* Integration Hub (scripts/v47/pages/product--integration-hub.py).
   The hub map in the integration directory and the Google Drive mark on the
   interactive example. #af-mock outranks the handoff's .af-scope rules. */

/* Hub map: agents on the left, one endpoint in the middle, the tools that are
   connected once on the right, joined by hairlines. */
#af-mock .hub-map{
  display:grid;grid-template-columns:minmax(0,180px) minmax(0,218px) minmax(0,1fr);
  align-items:center;gap:0 46px;margin:0 0 46px;padding:34px 0;
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
}
#af-mock .hub-map .eyebrow{display:block;margin:0 0 14px;font-size:9.5px;color:var(--muted)}
#af-mock .hub-agents{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
#af-mock .hub-agents li{
  font:11px 'IBM Plex Mono',monospace;color:#5f6a4b;background:#fff;
  border:1px solid var(--line);border-radius:30px;padding:9px 14px;text-align:center;
}
#af-mock .hub-core{
  position:relative;display:grid;justify-items:center;gap:7px;padding:26px 18px;
  border:1px solid #cbd8b5;border-radius:10px;background:linear-gradient(120deg,#f2f6e8,#faf5e4);
}
#af-mock .hub-core img{display:block;width:24px;height:24px}
#af-mock .hub-core strong{font:500 17px 'DM Sans',sans-serif;color:#0a0a0a}
#af-mock .hub-core small{font:9px 'IBM Plex Mono',monospace;letter-spacing:.12em;color:#6b7458}
#af-mock .hub-core:before,#af-mock .hub-core:after{
  content:'';position:absolute;top:50%;width:46px;height:1px;background:#c6d4ad;
}
#af-mock .hub-core:before{right:100%}
#af-mock .hub-core:after{left:100%}
#af-mock .hub-tools{
  list-style:none;margin:0;padding:0;display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;
}
#af-mock .hub-tools li{
  display:flex;align-items:center;gap:10px;min-width:0;padding:11px 13px;
  border:1px solid var(--line);border-radius:8px;background:#fff;
  font:14px 'DM Sans',sans-serif;color:#0a0a0a;
}
#af-mock .hub-tools img{flex:none;display:block;width:18px;height:18px;object-fit:contain}
#af-mock .hub-tools span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#af-mock .hub-note{margin:14px 0 0;font:11px 'IBM Plex Mono',monospace;color:var(--muted)}

/* Interactive example: the real Google Drive logo in a tile, not a generic glyph. */
#af-mock .instrument-graphic .tool-mark{
  z-index:1;display:grid;place-items:center;width:114px;height:114px;font-size:0;
  border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 14px 44px #92a85f22;
  transition:border-color .5s,box-shadow .5s;
}
#af-mock .instrument-graphic .tool-mark img{
  display:block;width:54px;height:54px;object-fit:contain;transition:filter .5s,opacity .5s;
}
#af-mock .instrument-control[data-disabled=true] .tool-mark{border-style:dashed;box-shadow:none}
#af-mock .instrument-control[data-disabled=true] .tool-mark img{filter:grayscale(1);opacity:.28}

@media(max-width:1000px){
  #af-mock .hub-map{grid-template-columns:minmax(0,160px) minmax(0,190px) minmax(0,1fr);gap:0 30px}
  #af-mock .hub-core:before,#af-mock .hub-core:after{width:30px}
  #af-mock .hub-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  #af-mock .hub-map{grid-template-columns:minmax(0,1fr);gap:26px;padding:26px 0}
  #af-mock .hub-core:before,#af-mock .hub-core:after{display:none}
  #af-mock .hub-agents{flex-direction:row;flex-wrap:wrap}
  #af-mock .instrument-graphic .tool-mark{width:96px;height:96px}
}
@media(prefers-reduced-motion:reduce){
  #af-mock .instrument-graphic .tool-mark,#af-mock .instrument-graphic .tool-mark img{transition:none}
}

/* Readability: a comfortable measure for the answers. */
#af-mock .faq p{max-width:62ch}

/* 02 / IN PRACTICE — one call, one endpoint, three tools.
   A call card on the left, a fan of hairlines, and one lane per destination
   tool carrying its own verdict. */
#af-mock .hub-fan{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
#af-mock .fan-head{
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:18px 26px;border-bottom:1px solid var(--line);
  font:11px 'IBM Plex Mono',monospace;color:#8a927c;
}
#af-mock .fan-head .eyebrow{margin:0;font-size:11px;letter-spacing:.14em;color:#5f6a4b}
#af-mock .fan-body{
  display:grid;grid-template-columns:minmax(0,286px) 74px minmax(0,1fr);
  align-items:stretch;padding:26px;
}
#af-mock .fan-call{
  display:flex;flex-direction:column;gap:12px;padding:20px 22px;
  border:1px solid #cbd8b5;border-radius:10px;
  background:linear-gradient(150deg,#f4f7ec,#fbf7e8);
}
#af-mock .fan-call .eyebrow{margin:0;font-size:9.5px;letter-spacing:.16em;color:#6b7458}
#af-mock .fan-call code{
  font:13px 'IBM Plex Mono',monospace;color:#1d211c;align-self:flex-start;
  padding:5px 10px;border:1px solid #cbd8b5;border-radius:5px;background:#fff;
}
#af-mock .fan-facts{list-style:none;margin:0;padding:0;display:grid;gap:7px}
#af-mock .fan-facts li{
  display:flex;align-items:baseline;gap:9px;font:12px 'IBM Plex Mono',monospace;
  padding-bottom:7px;border-bottom:1px solid #dbe4c9;
}
#af-mock .fan-facts li:last-child{border-bottom:0;padding-bottom:0}
#af-mock .fan-facts i{flex:none;width:74px;font-style:normal;color:#7b8468}
#af-mock .fan-facts b{font-weight:500;color:#0a0a0a}
#af-mock .fan-call p{margin:2px 0 0;font:13px/1.55 'DM Sans',sans-serif;color:#4c5346}

/* The fan: a spine from the call card, one hairline into each lane. */
#af-mock .fan-hinge{
  position:relative;display:grid;grid-template-rows:repeat(3,1fr);gap:14px;
  margin:0 4px;
}
#af-mock .fan-hinge:before{
  content:'';position:absolute;left:10px;top:16.7%;bottom:16.7%;width:1px;background:#cbd2c0;
}
#af-mock .fan-hinge i{position:relative}
#af-mock .fan-hinge i:before{
  content:'';position:absolute;left:10px;right:8px;top:50%;height:1px;background:#cbd2c0;
}
#af-mock .fan-hinge i:after{
  content:'';position:absolute;right:2px;top:50%;margin-top:-3.5px;
  border:3.5px solid transparent;border-left-color:#b9c2ab;
}

#af-mock .fan-lanes{list-style:none;margin:0;padding:0;display:grid;grid-template-rows:repeat(3,1fr);gap:14px}
#af-mock .fan-lanes li{
  display:grid;grid-template-columns:minmax(0,152px) minmax(0,1fr) auto;
  column-gap:20px;row-gap:6px;align-items:center;align-content:center;
  padding:16px 20px;border:1px solid var(--line);border-left:3px solid var(--line);
  border-radius:10px;background:#fff;
}
#af-mock .fan-lanes .is-allowed,#af-mock .fan-lanes li.is-allowed{border-left-color:#c3d9a0}
#af-mock .fan-lanes li.is-blocked{border-left-color:#f0b98c}
#af-mock .fan-lanes li.is-held{border-left-color:#f0ce86}
#af-mock .fan-tool{display:flex;align-items:center;gap:10px;min-width:0}
#af-mock .fan-tool img{flex:none;display:block;width:22px;height:22px;object-fit:contain}
#af-mock .fan-lanes li.is-blocked .fan-tool img{filter:grayscale(1);opacity:.45}
#af-mock .fan-tool em{
  font:500 14px 'DM Sans',sans-serif;font-style:normal;color:#0a0a0a;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
#af-mock .fan-what{display:grid;gap:3px;min-width:0}
#af-mock .fan-what b{font:500 15px 'DM Sans',sans-serif;color:#0a0a0a}
#af-mock .fan-what span{font:11px 'IBM Plex Mono',monospace;color:#8a927c}
#af-mock .fan-verdict{
  justify-self:end;padding:6px 12px;border-radius:30px;border:1px solid var(--line);
  font:10px 'IBM Plex Mono',monospace;letter-spacing:.12em;text-transform:uppercase;color:#4c5346;
}
#af-mock .fan-lanes li.is-allowed .fan-verdict{background:#eef4e2;border-color:#cbd8b5}
#af-mock .fan-lanes li.is-blocked .fan-verdict{background:#fbeade;border-color:#eec9ae}
#af-mock .fan-lanes li.is-held .fan-verdict{background:#fbf3df;border-color:#ecd9ae}
#af-mock .fan-lanes li p{
  grid-column:2/-1;margin:0;font:13px/1.5 'DM Sans',sans-serif;color:#5c6358;max-width:66ch;
}
#af-mock .fan-note{
  margin:0;padding:14px 26px;border-top:1px solid var(--line);
  font:11px 'IBM Plex Mono',monospace;color:#8a927c;
}

@media(max-width:1000px){
  #af-mock .fan-body{grid-template-columns:minmax(0,240px) 52px minmax(0,1fr);padding:20px}
  #af-mock .fan-lanes li{grid-template-columns:minmax(0,132px) minmax(0,1fr) auto;column-gap:14px}
}
@media(max-width:860px){
  #af-mock .fan-body{grid-template-columns:minmax(0,1fr);gap:18px}
  #af-mock .fan-hinge{display:none}
  #af-mock .fan-lanes{grid-template-rows:none}
  #af-mock .fan-lanes li{grid-template-columns:minmax(0,1fr) auto;row-gap:10px}
  #af-mock .fan-tool{grid-column:1/-1}
  #af-mock .fan-lanes li p{grid-column:1/-1}
  #af-mock .fan-head,#af-mock .fan-note{padding-left:20px;padding-right:20px}
}
