<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_0c0d7a42-bec9-4ffd-9637-1771ef543519">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-01</startDate>
            <endDate>2026-04-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_0c0d7a42-bec9-4ffd-9637-1771ef543519"
      id="F_80a518fb-fe0f-4041-8603-7be70e222142">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_0c0d7a42-bec9-4ffd-9637-1771ef543519"
      id="F_2ef929af-89e9-42d8-af55-e78ce9d56c00">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_0c0d7a42-bec9-4ffd-9637-1771ef543519"
      id="F_8f480b60-999d-4536-bd94-907a02dd569b">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0c0d7a42-bec9-4ffd-9637-1771ef543519"
      id="F_8244455b-715b-44c3-a7ec-124f3d35f51d">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0c0d7a42-bec9-4ffd-9637-1771ef543519"
      id="F_1cb1fbce-c810-4578-bf71-cd31d9ef27c6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0c0d7a42-bec9-4ffd-9637-1771ef543519"
      id="F_b106544c-9db2-43b4-858e-0f99251aa4e2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_0c0d7a42-bec9-4ffd-9637-1771ef543519"
      id="F_186de97a-cf5a-46fc-aaaf-d4d9873d0ff7">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_0c0d7a42-bec9-4ffd-9637-1771ef543519"
      id="F_a61f4329-b480-479a-ae88-7cc74f4f9e97">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_0c0d7a42-bec9-4ffd-9637-1771ef543519"
      id="F_f0cef2fc-2dc5-41d8-85e7-cf08717ecd1d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0c0d7a42-bec9-4ffd-9637-1771ef543519"
      id="F_72f48280-c85a-4fb3-bf3e-3685c0d21bca">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;1,766,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_0c0d7a42-bec9-4ffd-9637-1771ef543519"
      decimals="0"
      id="F_8ecae56e-3611-4121-a770-1bc957800aac"
      unitRef="U_USD">1766000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
