/* iPad service layouts. The early common contract owns data-is-tablet-mode. */

/* Insurance inquiry: keep the established mobile information order in portrait. */
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-shell,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-page.ii-shell,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-work-page {
    width: calc(100% - 24px);
    padding-top: calc(var(--mobile-primary-header-height, 110px) + 12px);
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-mobile-service-nav {
    position: relative;
    display: flex;
    width: calc(100% + 24px);
    min-height: 45px;
    align-items: stretch;
    gap: 0;
    margin: -12px -12px 0;
    padding: 0 8px;
    overflow: hidden;
    border-bottom: 1px solid #d9dde3;
    background: #fff;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-mobile-service-nav a {
    position: relative;
    display: inline-flex;
    min-width: 0;
    min-height: 44px;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    color: #4c5562;
    font-size: 13px;
    font-weight: 560;
    text-decoration: none;
    white-space: nowrap;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-mobile-service-nav a::after {
    position: absolute;
    right: 10px;
    bottom: -1px;
    left: 10px;
    height: 2px;
    background: transparent;
    content: "";
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-mobile-service-nav a.is-active::after {
    background: #ffcf24;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-mobile-action-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    min-height: 64px;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #d9dde3;
    background: rgba(255, 255, 255, 0.98);
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-mobile-action-dock a,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-mobile-action-dock button {
    display: grid;
    min-width: 0;
    min-height: 56px;
    place-content: center;
    justify-items: center;
    gap: 3px;
    padding: 3px 2px;
    border: 0;
    background: transparent;
    color: #737d8a;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-mobile-action-dock svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-mobile-action-dock span {
    overflow: hidden;
    max-width: 100%;
    font-size: 10.5px;
    font-weight: 560;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-mobile-action-dock :is(a, button).is-active {
    color: #171717;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-mobile-action-dock :is(a, button).is-active svg {
    stroke-width: 2;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-board {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "hero" "feed-intro" "coverage-head" "coverage-feed" "claim-head" "claim-feed";
    column-gap: 0;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-board.has-search {
    grid-template-areas: "hero" "results";
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-board.is-streaming {
    grid-template-areas: "hero" "feed-intro" "stream";
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-board.is-composing {
    grid-template-areas: "compose";
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-board::before {
    display: none;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-hero-content {
    width: 100%;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 13px 0 0;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-title-row {
    width: 100%;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-top: 6px;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-title-copy {
    min-width: 0;
    flex: 1 1 auto;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-hero h1 {
    overflow: hidden;
    font-size: 26px;
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-lead {
    max-width: none;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-toolbar,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-board.is-mobile-search-open .ii-landing-toolbar {
    display: flex;
    width: 100%;
    min-height: 0;
    align-items: center;
    margin: 15px 0 0;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-toolbar > .ii-primary,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-toolbar > .ii-secondary {
    display: none;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-search,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-board.is-mobile-search-open .ii-landing-search {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 94px;
    width: 100%;
    min-height: 52px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #718294;
    border-radius: 0;
    background: transparent;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-search-submit {
    grid-column: 1;
    grid-row: 1;
    min-height: 50px;
    height: 50px;
    padding: 0;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-search-submit span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-search-input {
    grid-column: 2;
    grid-row: 1;
    min-height: 50px;
    height: 50px;
    padding: 0 8px;
    font-size: 16px;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-search-scope {
    grid-column: 3;
    grid-row: 1;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-search-scope summary {
    min-height: 50px;
    height: 50px;
    padding: 0 9px;
    border-right: 0;
    border-left: 1px solid #d8e0e7;
    font-size: 12px;
    white-space: nowrap;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-search-scope-menu {
    right: 0;
    left: auto;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-visual {
    display: none;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-feed-intro {
    min-height: 67px;
    align-items: center;
    margin-top: 0;
    padding: 14px 0 10px;
    border-top: 0;
    border-bottom: 1px solid #171717;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-feed-intro h2 {
    font-size: 20px;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-feed-intro p {
    max-width: 155px;
    font-size: 11.5px;
    line-height: 1.45;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-category-stream-head,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-board.is-composing .ii-landing-hero,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-board.is-composing .ii-landing-toolbar,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-landing-board.is-composing .ii-landing-search {
    display: none;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-category-stream-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-category-popular {
    display: none;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-topic-heading {
    min-height: 46px;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-topic-heading--claim {
    margin-top: 18px;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-topic-row a,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-topic-row.is-featured a {
    min-height: 64px;
    padding: 10px 0;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-topic-row.is-featured p,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-status,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-topic-title span {
    display: none;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-inline-compose .ii-write-form,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-work-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-compose-nav {
    position: static;
    gap: 8px;
    padding: 8px 0 4px;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-compose-nav .ii-type-choice > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #cfd5dd;
    border-radius: 8px;
    overflow: hidden;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-compose-list-link {
    display: none;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-compose-fields > label {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 49px;
    gap: 10px;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-inline-compose .ii-editor-field {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-inline-compose .ii-editor-field > label,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-inline-compose .ii-editor-toolbar,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-inline-compose .ii-editor-shell > .ql-container,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-inline-compose .ii-editor-shell > textarea,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-inline-compose .ii-editor-notice {
    grid-column: 1;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-inline-compose .ii-editor-field > label { grid-row: 1; }
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-inline-compose .ii-editor-toolbar { grid-row: 2; }
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-inline-compose .ii-editor-shell > .ql-container,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-inline-compose .ii-editor-shell > textarea { grid-row: 3; }
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-inline-compose .ii-editor-notice { grid-row: 4; }

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-compose-fields > label:focus-within,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-inline-compose .ii-editor-field:focus-within .ql-container.ql-snow,
html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page .ii-inline-compose .ii-editor-field:focus-within textarea {
    border-color: #cfd5dd;
    border-bottom-color: #cfd5dd;
    outline: 0;
    box-shadow: none;
}

html[data-is-tablet-mode="mobile"] body.insurance-inquiry-page :is(a, button, summary, select, input[type="checkbox"], input[type="radio"]):focus-visible {
    outline: 2px solid #2457d6;
    outline-offset: 3px;
}

/* FC forum: 1024px landscape uses a fitted desktop rail instead of the mobile stack. */
html[data-is-tablet-mode="desktop"] body.fc-forum-app main.main-content.board-list-page,
html[data-is-tablet-mode="desktop"] body.fc-forum-app main.main-content.board-view-page {
    display: block;
    height: auto;
    min-height: calc(100vh - var(--header-height));
    overflow: visible !important;
    position: static !important;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app main.main-content .fc-forum-shell {
    width: min(1200px, calc(100% - 32px));
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app main.main-content .board-page-hero {
    position: relative;
    top: auto;
    padding: 22px 0 18px;
    margin-bottom: 0;
    background: var(--fc-talk-hero-grad, #fff);
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app main.main-content .board-hero-inner {
    margin-left: 0;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app main.main-content .board-scroll-area {
    width: 100%;
    max-width: 100%;
    padding: 0 0 28px;
    background: #fff;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app main.main-content .board-layout {
    width: 100% !important;
    max-width: 100% !important;
    flex-direction: row;
    align-items: flex-start !important;
    gap: 12px;
    margin: 0 !important;
    padding: 0;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app main.main-content .board-layout > *:not(:last-child) {
    margin-right: 0;
    margin-bottom: 0;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app main.main-content .board-layout aside.board-sidebar {
    position: sticky;
    top: var(--board-sidebar-sticky-top);
    z-index: 999;
    display: block !important;
    width: 220px;
    min-width: 0;
    max-width: 220px;
    min-height: 0;
    max-height: calc(100vh - var(--header-height) - 32px);
    flex: 0 0 220px;
    align-self: flex-start;
    margin: 0;
    padding: 14px 12px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app main.main-content .board-container,
html[data-is-tablet-mode="desktop"] body.fc-forum-app main.main-content .view-board-container {
    width: auto !important;
    min-width: 0;
    max-width: none !important;
    flex: 1 1 0 !important;
    margin: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app main.main-content .board-table-container {
    display: block !important;
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
    overflow: visible;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app main.main-content .board-table-container .board-table {
    display: table !important;
    min-width: 0;
    font-size: 0.875rem;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app main.main-content :is(.mobile-board-toolbar, .mobile-controls, .mobile-board-list, .infinite-scroll-container, .mobile-write-floating, .board-mobile-feature-rotator) {
    display: none !important;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app .mobile-board-toolbar {
    display: none !important;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app main.main-content .pagination {
    display: flex !important;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app main.board-list-page .board-feed-stream {
    width: 100%;
    max-width: none;
    gap: 14px;
    margin: 0;
    padding: 0 0 16px;
    border-top: 0;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app main.board-list-page .feed-card,
html[data-is-tablet-mode="desktop"] body.fc-forum-app main.board-list-page .feed-card--notice {
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app main.board-list-page .feed-card-body {
    min-height: 0;
    padding: 16px 18px;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app :is(input[type="text"], input[type="search"], textarea):focus {
    border-color: #cfd5dd !important;
    outline: 0 !important;
    box-shadow: none !important;
}

html[data-is-tablet-mode="desktop"] body.fc-forum-app :is(a, button, select, summary):focus-visible {
    outline: 2px solid #2457d6;
    outline-offset: 3px;
}

/* Public utility pages: one outer gutter, matching the unchanged shared header. */
html[data-is-tablet-mode] body.mobile-main-shell main.main-content:is(.life-main, .car-main, .realestate-main) > .main-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
}
html[data-is-tablet-mode] body.mobile-main-shell main.main-content:is(.life-main, .car-main, .realestate-main) > .main-wrapper > .container,
html[data-is-tablet-mode] body.mobile-main-shell .lh-applyhome-page > .container {
    box-sizing: border-box !important;
    width: min(1200px, calc(100% - 36px)) !important;
    max-width: 1200px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}
html[data-is-tablet-mode] body.mobile-main-shell .lh-applyhome-page > .container > .lh-content > .container {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
}
html[data-is-tablet-mode] body.mobile-main-shell .lh-applyhome-page .pc-search-interface {
    padding-inline: 0 !important;
}
html[data-is-tablet-mode] body.mobile-main-shell > .life-info-hero {
    box-sizing: border-box !important;
    width: min(1200px, calc(100% - 36px)) !important;
    max-width: 1200px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}
html[data-is-tablet-mode="mobile"] body.mobile-main-shell.car-charging-page .search-results-area > .results-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
}

/* Tablet portrait input gutters; existing phone rules and full-width service tabs remain. */
html[data-is-tablet-mode="mobile"] body.insurance-service-minimal.insu-link-app.insu-dashboard-page .main-wrapper > .container {
    width: calc(100% - 36px) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}
html[data-is-tablet-mode="mobile"] body.insurance-service-minimal.insu-info-dashboard-page .search-sidebar {
    box-sizing: border-box !important;
    width: calc(100% - 36px) !important;
    max-width: calc(100% - 36px) !important;
    margin-inline: 18px !important;
    padding-inline: 0 !important;
}
html[data-is-tablet-mode="mobile"] body.insurance-service-minimal.insu-info-dashboard-page .insu-info-mobile-title-bar,
html[data-is-tablet-mode="mobile"] body.insurance-service-minimal.liability-dashboard-page :is(.disaster-mobile-header, .lift-mobile-header, .liability-services-dashboard-mobile-wrap, .search-sidebar, .search-results-area) {
    margin-inline: 18px !important;
}
html[data-is-tablet-mode="mobile"] body.insurance-service-minimal.insu-info-dashboard-page .insu-info-dashboard-mobile-wrap {
    padding-inline: 18px !important;
}
html[data-is-tablet-mode="mobile"] body.insurance-service-minimal.hospital-search-page .insu-info-dashboard-mobile-wrap > .insu-info-mobile-title-bar {
    margin-inline: 0 !important;
}
html[data-is-tablet-mode="mobile"] body.mobile-main-shell main.main-content:is(.life-main, .car-main, .realestate-main) > .main-wrapper > .container > .insurance-content > .pc-search-interface > .search-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
}
