/* iPad-only daily report layout. The report DOM remains unchanged on rotation. */

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-shell {
    width: 100%;
    padding: calc(var(--mobile-primary-header-height, 110px) + 8px) 14px 46px;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-hero {
    padding: 16px 0 14px;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-hero h1 {
    margin-top: 5px;
    font-size: clamp(22px, 6vw, 25px);
    line-height: 1.32;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-navigation {
    grid-template-columns: minmax(0, 1fr);
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-contents {
    min-height: 44px;
    gap: 8px;
    padding: 0;
    border-bottom: 1px solid var(--daily-line);
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-contents > header {
    flex: 0 0 auto;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-contents > header h2 {
    margin: 0;
    font-size: 14px;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-contents > ol {
    gap: 6px;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-contents > ol > li > a {
    padding: 0 2px;
    border-width: 0;
    border-radius: 0;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-contents > ol > li > a strong {
    font-size: 12.5px;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-archive {
    min-height: 44px;
    padding: 0;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-archive__controls {
    width: 100%;
    justify-content: flex-end;
    gap: 4px;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-archive form {
    min-width: 0;
    flex: 0 0 auto;
    gap: 4px;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-archive select {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-date-picker {
    width: 100px;
    min-width: 0;
    flex: 0 0 100px;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-date-picker__list {
    right: -48px;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-section,
html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-group {
    scroll-margin-top: calc(var(--mobile-primary-header-height, 110px) + 10px);
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-section {
    padding: 18px 0;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-group__head {
    padding: 17px 0 0;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-group__head h2 {
    font-size: 21px;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-section__head {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-section__head h2,
html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-section__head h3 {
    margin-top: 3px;
    font-size: 19px;
    line-height: 1.4;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-section__content {
    max-width: none;
    margin: 10px 0 0 28px;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-section.has-media .daily-report-story {
    grid-template-columns: 110px minmax(0, 1fr);
    grid-template-areas:
        "media head"
        "body body";
    gap: 12px;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-section.has-media .daily-report-story__text {
    display: contents;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-section.has-media .daily-report-section__head {
    grid-area: head;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-section.has-media .daily-report-section__content {
    grid-area: body;
    margin: 0;
}

html[data-is-tablet-mode="mobile"] .daily-report-page .daily-report-facts > p {
    font-size: 15px;
    line-height: 1.65;
}

html[data-is-tablet-mode="desktop"] .daily-report-page .daily-report-shell {
    width: min(1200px, calc(100% - 48px));
    padding: 96px 0 64px;
}

html[data-is-tablet-mode="desktop"] .daily-report-page .daily-report-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-is-tablet-mode="desktop"] .daily-report-page .daily-report-section.has-media .daily-report-story {
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-areas: "media text";
    gap: 24px;
}

html[data-is-tablet-mode="desktop"] .daily-report-page .daily-report-section.has-media .daily-report-story__text {
    display: block;
    grid-area: text;
}

html[data-is-tablet-mode="desktop"] .daily-report-page .daily-report-section.has-media .daily-report-section__head,
html[data-is-tablet-mode="desktop"] .daily-report-page .daily-report-section.has-media .daily-report-section__content {
    grid-area: auto;
}
