/* The cream phone layout is shared with the native iPhone homepage. */
.masthead .brand-band { background:var(--masthead); color:var(--ink); }
.masthead .top-row { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:'brand post' 'utilities utilities'; padding-block:1rem; gap:12px; min-height:0; }
.masthead .wordmark { grid-area:brand; width:140px; height:44px; align-self:start; }
.masthead .wordmark img { filter:none; }
.masthead .nav-utilities { display:contents; }
.masthead .utility-links { grid-area:utilities; display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; }
.masthead .nav-link { display:inline-flex; flex:0 1 auto; align-items:center; justify-content:center; gap:7px; min-width:0; min-height:44px; padding:0; color:var(--ink); font-size:1rem; font-weight:600; line-height:1.35; white-space:normal; border:1px solid transparent; border-radius:7px; text-align:center; }
.masthead .nav-link > span { display:inline-flex; }
.masthead .nav-link svg { width:21px; height:21px; }
.masthead .messages-link span:not([data-icon]) { position:static; width:auto; height:auto; overflow:visible; clip-path:none; white-space:normal; }
.masthead .nav-link:hover,.masthead .nav-link[aria-current='page'] { color:var(--accent); background:#e5ead9; text-decoration:underline; text-underline-offset:5px; }
.masthead .nav-utilities .post-button { grid-area:post; justify-self:end; min-height:44px; margin:0; padding:10px 14px; font-size:1rem; line-height:1.35; background:var(--accent); color:var(--action-ink); }
.masthead .nav-utilities .post-button [data-icon] { display:none; }
.masthead .top-row:not(:has(.messages-link)) { grid-template-columns:140px minmax(0,1fr) auto; grid-template-areas:'brand utilities post'; }
.masthead .top-row:not(:has(.messages-link)) .utility-links { justify-content:flex-end; }
.masthead .top-row:not(:has(.messages-link)) .login { flex:0 1 auto; padding-inline:6px; }
.masthead .search-belt { padding-bottom:1rem; background:var(--masthead); }
.masthead .search { display:grid; grid-template-columns:minmax(0,1fr) 107px 88px; width:100%; height:auto; align-items:stretch; border-color:#afb6a3; border-radius:9px; }
.masthead .search-field { grid-column:1/-1; display:flex; align-items:center; gap:12px; min-height:58px; padding-inline:13px; border-bottom:1px solid var(--line); }
.masthead .search-input-wrap { display:flex; flex:1; flex-direction:column; justify-content:center; min-width:0; gap:2px; }
.masthead .field-caption { display:none; }
.masthead .search input { width:100%; min-width:0; border:0; background:transparent; color:var(--ink); font-size:1rem; line-height:1.4; }
.masthead .area { display:flex; width:auto; min-height:54px; padding:0 8px 0 12px; gap:7px; border-left:0; }
.masthead .area input { outline:0; font-weight:400; text-overflow:ellipsis; }
.masthead .area input::placeholder { color:var(--muted); opacity:1; }
.masthead .area > [data-icon] svg { width:21px; height:21px; }
.masthead .area .location-clear { width:29px; height:36px; }
.masthead .radius { display:flex; flex-direction:column; align-items:stretch; justify-content:center; width:auto; padding:8px 9px; gap:1px; }
.masthead .radius select { width:100%; align-self:auto; min-height:26px; padding:0 19px 0 0; font-size:1rem; font-weight:400; }
.masthead .radius .field-caption { position:static; pointer-events:auto; }
.masthead .radius > [data-icon] { top:auto; right:8px; }
.masthead .radius svg { width:16px; height:16px; }
.masthead .search-button { min-width:0; min-height:44px; margin:5px; padding-inline:9px; border-radius:6px; font-size:1rem; gap:9px; }
.masthead .search-button [data-icon] { display:none; }
.masthead .category-bar { border-top:1px solid var(--line); background:var(--masthead); }
.masthead .categories { min-height:49px; gap:24px; }
.masthead .categories > :first-child { margin-left:0; }
.masthead .categories button { min-height:48px; font-size:1rem; }
.masthead .nav-link:focus-visible,.masthead .search-button:focus-visible { outline-width:3px; }
@media(max-width:360px){
 .masthead .top-row:not(:has(.messages-link)) { grid-template-columns:112px minmax(0,1fr) auto; gap:8px; }
 .masthead .top-row:not(:has(.messages-link)) .wordmark { width:112px; }
 .masthead .nav-link { gap:5px; }
 .masthead .nav-link svg { width:19px; height:19px; }
 .masthead .search { grid-template-columns:minmax(0,1fr) 100px 82px; }
}
@media(min-width:761px){
 :root:not([data-iaan-native]) .masthead .top-row { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:'brand utilities'; min-height:78px; padding-block:12px; gap:24px; }
 :root:not([data-iaan-native]) .masthead .wordmark { align-self:center; }
 :root:not([data-iaan-native]) .masthead .nav-utilities { grid-area:utilities; display:flex; align-items:center; gap:20px; }
 :root:not([data-iaan-native]) .masthead .utility-links { display:flex; gap:16px; }
 :root:not([data-iaan-native]) .masthead .nav-link { flex:none; min-height:44px; gap:6px; font-size:1rem; white-space:nowrap; }
 :root:not([data-iaan-native]) .masthead .saved-link { min-width:36px; }
 :root:not([data-iaan-native]) .masthead .saved-link > span:not([data-icon]) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 :root:not([data-iaan-native]) .masthead .login > [data-icon] { display:none; }
 :root:not([data-iaan-native]) .masthead .nav-utilities .post-button { min-height:44px; padding-inline:17px; font-size:1rem; }
 :root:not([data-iaan-native]) .masthead .nav-utilities .post-button [data-icon] { display:inline-flex; }
 :root:not([data-iaan-native]) .masthead .search { display:flex; height:46px; border-radius:var(--radius); }
 :root:not([data-iaan-native]) .masthead .search-field { flex:1; min-height:44px; padding-inline:13px; gap:10px; border-bottom:0; }
 :root:not([data-iaan-native]) .masthead .search input { font-size:1rem; }
 :root:not([data-iaan-native]) .masthead .area { width:215px; min-height:44px; padding-inline:11px 3px; gap:7px; border-left:1px solid var(--line); }
 :root:not([data-iaan-native]) .masthead .area > [data-icon] svg { width:17px; height:17px; }
 :root:not([data-iaan-native]) .masthead .area .location-clear { width:34px; }
 :root:not([data-iaan-native]) .masthead .radius { width:111px; padding:0; }
 :root:not([data-iaan-native]) .masthead .radius select { height:44px; padding:0 29px 0 13px; font-size:1rem; }
 :root:not([data-iaan-native]) .masthead .radius > [data-icon] { top:auto; right:10px; }
 :root:not([data-iaan-native]) .masthead .search-button { min-width:88px; margin:0; padding-inline:17px; font-size:1rem; border-radius:0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0; }
 :root:not([data-iaan-native]) .masthead .categories { min-height:49px; gap:29px; }
 :root:not([data-iaan-native]) .masthead .categories > :first-child { margin-left:auto; }
}
@media(min-width:761px) and (max-width:1000px){
 :root:not([data-iaan-native]) .masthead .nav-utilities,:root:not([data-iaan-native]) .masthead .utility-links { gap:13px; }
}
/* Flatten only the desktop wrappers into the original single toolbar.
   Phone and native-app layouts retain their existing rows. */
@media(min-width:1281px){
 :root:not([data-iaan-native]) .masthead .navigation-toolbar { display:grid; grid-template-columns:140px minmax(0,1fr) auto; align-items:center; gap:24px; width:min(1280px,calc(100% - 96px)); margin-inline:auto; min-height:78px; }
 :root:not([data-iaan-native]) .masthead .brand-band,
 :root:not([data-iaan-native]) .masthead .top-row,
 :root:not([data-iaan-native]) .masthead .search-belt,
 :root:not([data-iaan-native]) .masthead .search-belt > .wrap { display:contents; }
 :root:not([data-iaan-native]) .masthead .wordmark { grid-area:1 / 1; }
 :root:not([data-iaan-native]) .masthead .search { grid-column:2; grid-row:1; }
 :root:not([data-iaan-native]) .masthead .nav-utilities { grid-area:1 / 3; }
}
@media(max-width:550px){
 .masthead .location-suggestions { left:0; width:min(340px,calc(100vw - 32px)); max-width:calc(100vw - 32px); font-size:1rem; }
}
@media(max-width:450px){
 .masthead .top-row:not(:has(.messages-link)){grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'brand post' 'utilities utilities';gap:8px;}
 .masthead .top-row:not(:has(.messages-link)) .utility-links{justify-content:flex-start;}
 .masthead .top-row:not(:has(.messages-link)) .login{min-height:30px;padding:0;}
 .masthead .seller-entry{padding-inline:12px;font-size:.9375rem;}
}
