/* The public app and its printable guides share these screen-only reading rules. */
@media screen {
  main:not(:has([data-ocid="home_page"])) [data-slot="breadcrumb-link"] {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    text-underline-offset: .22em;
  }
  main:not(:has([data-ocid="home_page"])) [data-slot="breadcrumb-link"]:hover {
    text-decoration: underline;
  }
  section[aria-labelledby="resources-start-heading"] {
    margin-bottom: 1.75rem;
  }
  section[aria-labelledby="resources-start-heading"] > div {
    padding: 1rem 0 1.25rem;
    border: 0;
    border-bottom: 1px solid var(--border, #d6d8cc);
    border-radius: 0;
    background: transparent;
    gap: 1rem 2rem;
  }
  section[aria-labelledby="resources-start-heading"] > div > div:first-child > p:first-child {
    display: none;
  }
  #resources-start-heading {
    margin-top: 0;
    max-width: none;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    line-height: 1.17;
    letter-spacing: -.025em;
  }
  #resources-start-heading + p { margin-top: .5rem; max-width: 55ch; }
  #employer-buying-guides { margin-top: 1.65rem; }
  .guide-shortcuts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 1.35rem;
    margin: .95rem 0 0;
    padding: .25rem 0;
    border-top: 1px solid #cbd1c5;
  }
  .guide-shortcuts a, .guide-utility, .case-return {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: .45em;
    color: #0b2d26;
    background: transparent;
    padding: .3rem 0;
    font: 600 .98rem/1.35 "General Sans", system-ui, sans-serif;
    text-underline-offset: .22em;
    text-decoration: underline;
    text-decoration-color: #81988b;
  }
  .guide-shortcuts a:hover, .guide-utility:hover, .case-return:hover { text-decoration-color: currentColor; }
  .guide-shortcuts a:focus-visible, .guide-utility:focus-visible, .case-return:focus-visible,
  .brief-skip:focus-visible { outline: 3px solid #356c58; outline-offset: 3px; border-radius: 2px; }
  .guide-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .guide-topline .brand-home { display: inline-flex; align-items: center; min-height: 44px; }
  .brief-skip { position: absolute; left: .75rem; top: .75rem; transform: translateY(-200%); padding: .6rem 1rem; background: #fbfaf5; color: #0b2d26; z-index: 5; }
  .brief-skip:focus { transform: none; }
  .case-return { margin-top: .75rem; font-size: .9rem; }
  .public-reading-brief :is(#decision,#access,#proposals,#estimate,#finance-example,#contribution-benchmark,#case-index) { scroll-margin-block-start: 1rem; }
  .buyer-tour .tour-plate figcaption a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-weight: 600;
    text-underline-offset: .22em;
  }
}
@media screen and (max-width: 639px) {
  /* The nearest parent is the useful return path on a narrow screen. */
  main:not(:has([data-ocid="home_page"])) [data-slot="breadcrumb"] {
    margin-block: -.5rem .75rem;
  }
  main:not(:has([data-ocid="home_page"])) [data-slot="breadcrumb-list"] > li {
    display: none;
  }
  main:not(:has([data-ocid="home_page"])) [data-slot="breadcrumb-list"] > li:has(+ [data-slot="breadcrumb-separator"] + li:last-child) {
    display: inline-flex;
  }
  main:not(:has([data-ocid="home_page"])) [data-slot="breadcrumb-link"] {
    min-height: 44px;
    column-gap: .5rem;
    color: #274f42;
  }
  main:not(:has([data-ocid="home_page"])) [data-slot="breadcrumb-link"]::before {
    content: "";
    width: .48rem;
    height: .48rem;
    border: solid currentColor;
    border-width: 0 0 1.5px 1.5px;
    transform: rotate(45deg);
  }
  main:not(:has([data-ocid="home_page"])) :is(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="tel"],input[type="number"],textarea,select) {
    font-size: max(1rem, 16px);
  }
  section[aria-labelledby="resources-start-heading"] > div { padding-top: 0; }
  section[aria-labelledby="resources-start-heading"] { margin-bottom: 1.4rem; }
  .guide-shortcuts { gap: 0 1rem; }
  [data-ocid="site_search.dialog"] input[type="search"] { font-size: max(1rem, 16px); }
  .buyer-tour .tour-plate figure { min-width: 0; margin-inline: -.5rem; }
  .buyer-tour .tour-plate figcaption { padding-inline: .5rem; }
  .buyer-tour .tour-plate figcaption a { display: flex; width: fit-content; min-height: 44px; }
  .buyer-tour .tour-tabs {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    align-items: stretch;
    width: 100%;
  }
  .buyer-tour .tour-tabs [role="tab"] { height: auto; min-height: 48px; }
}
@media print {
  .guide-shortcuts, .brief-skip, .guide-utility, .case-return { display: none !important; }
}
