/* Beverly Support: Apple Support's layout on top of /blog/blog.css, which
   carries the palette, local nav, banner, tiles and footer. A row of topics
   under the name, three quick links, search, then the help as tiles. */

.banner { padding-bottom: 44px; }

/* Topics row, like Apple's row of products: a lit disc over each name. */
.topics-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
  max-width: 980px;
  margin: 36px auto 0;
}
.topics-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 104px;
  padding: 8px 0;
  color: var(--text);
  font-size: 14px;
  letter-spacing: -0.016em;
  text-decoration: none;
}
.topics-row .disc {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1d1d1f;
  color: var(--accent);
  transition: background-color 200ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.topics-row svg { width: 30px; height: 30px; }
.topics-row a:hover .disc { background: #2a2a2d; transform: translateY(-2px); }

.support { max-width: 980px; margin: 0 auto; padding: 40px 16px 0; }
.section-title { margin: 56px 0 20px; font-size: 32px; line-height: 1.125; font-weight: 600; letter-spacing: 0.004em; }

/* Quick links: three tiles of the most asked-for jobs. */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.quick .tile {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 20px 22px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.quick .tile span { flex: 1; }
.quick .icon { flex: none; width: 28px; height: 28px; color: var(--accent); }
.quick .chev { flex: none; width: 16px; height: 16px; color: var(--faint); }

/* Search narrows the topic tiles below; support.js shows it. */
.search { margin: 56px auto 0; max-width: 692px; text-align: center; }
.search h2 { margin: 0 0 20px; font-size: 32px; line-height: 1.125; font-weight: 600; letter-spacing: 0.004em; }
.search .field { position: relative; }
.search .field svg { position: absolute; top: 50%; left: 18px; width: 20px; height: 20px; color: var(--faint); transform: translateY(-50%); pointer-events: none; }
.search input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--faint); }
.search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-status { min-height: 1.47em; margin: 12px 0 0; color: var(--dim); font-size: 14px; }

/* Topic tiles: two across, even heights, the last one full width. */
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tile.topic { gap: 10px; padding: 28px; }
.tile.topic.wide { grid-column: 1 / -1; }
.tile.topic .icon { width: 32px; height: 32px; margin-bottom: 6px; color: var(--accent); }
.tile.topic h3 { margin: 0; font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: 0.009em; }
.tile.topic p { margin: 0; color: var(--dim); }
.tile.topic strong { color: var(--text); font-weight: 600; }
.tile.topic:target { box-shadow: 0 0 0 2px var(--accent); }

/* Contact, shaped like the blog's app tile. */
.contact-tile {
  gap: 10px;
  margin-top: 56px;
  padding: 40px;
  background: radial-gradient(120% 90% at 100% 0%, var(--glow), transparent 60%), var(--tile);
}
.contact-tile h2 { margin: 0; font-size: 32px; line-height: 1.125; font-weight: 600; letter-spacing: 0.004em; }
.contact-tile p:not(.eyebrow) { margin: 0; color: var(--dim); }
.contact-tile .button { margin-top: 12px; }

/* More to Explore: blog tiles, with a phone peeking up in the second. */
.tile .media.peek {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 28px;
  background: radial-gradient(80% 90% at 50% 100%, var(--glow), transparent 70%), #000;
}
.tile .media.peek img { width: 44%; height: auto; object-fit: initial; border-radius: 20px 20px 0 0; }
.more-link { display: inline-flex; align-items: center; gap: 4px; margin: auto 0 0; padding-top: 14px; color: var(--accent); font-size: 17px; }
.more-link svg { width: 14px; height: 14px; }
a.tile:hover .more-link { text-decoration: underline; }

@media (max-width: 734px) {
  .topics-row { gap: 4px 0; margin-top: 28px; }
  .topics-row a { width: 25%; min-width: 76px; font-size: 12px; }
  .topics-row .disc { width: 52px; height: 52px; }
  .topics-row svg { width: 24px; height: 24px; }
  .quick, .topic-grid { grid-template-columns: 1fr; }
  .quick { gap: 12px; }
  .section-title, .search h2, .contact-tile h2 { font-size: 28px; }
  .section-title { margin-top: 44px; }
  .tile.topic { padding: 22px; }
  .tile.topic h3 { font-size: 21px; }
  .contact-tile { margin-top: 44px; padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .topics-row .disc { transition: none; }
  .topics-row a:hover .disc { transform: none; }
}

/* Tiles set display, so hidden topics need saying twice. */
.tile.topic[hidden] { display: none; }
