<?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_988c7602-e53f-46d6-bac0-b87da8f5f91f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-31</startDate>
            <endDate>2026-03-31</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_988c7602-e53f-46d6-bac0-b87da8f5f91f"
      id="F_39631927-3f89-487f-9009-a6d662b104be">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_988c7602-e53f-46d6-bac0-b87da8f5f91f"
      id="F_9de0a703-3583-4040-a362-ca2c4dbded95">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_988c7602-e53f-46d6-bac0-b87da8f5f91f"
      id="F_c904a935-c388-48e7-af79-20e47d4b3732">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_988c7602-e53f-46d6-bac0-b87da8f5f91f"
      id="F_83379bbb-9da6-4496-89e1-79301d424890">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_988c7602-e53f-46d6-bac0-b87da8f5f91f"
      id="F_f57cbdbe-318e-4001-a4cb-9f402d924af6">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_988c7602-e53f-46d6-bac0-b87da8f5f91f"
      id="F_efaf2835-208b-46a9-bfa1-09cc24199933">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_988c7602-e53f-46d6-bac0-b87da8f5f91f"
      id="F_845166b5-a7c8-4054-8ded-e445faf95485">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_988c7602-e53f-46d6-bac0-b87da8f5f91f"
      id="F_63367b45-dca6-400b-95af-55d4711fd564">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_988c7602-e53f-46d6-bac0-b87da8f5f91f"
      id="F_21bf031e-fa54-4832-b063-a8f41d62fa34">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_988c7602-e53f-46d6-bac0-b87da8f5f91f"
      id="F_92f00fd9-41ae-40b4-9cbc-206aba6aba93">&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;955,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_988c7602-e53f-46d6-bac0-b87da8f5f91f"
      decimals="0"
      id="F_90f327f3-5afe-4db8-ad4a-192f087b7e0c"
      unitRef="U_USD">955000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
