<?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_0adcfafb-49e7-48b5-b37d-5cde2c40db9f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-03</startDate>
            <endDate>2026-03-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0adcfafb-49e7-48b5-b37d-5cde2c40db9f"
      id="F_5193277a-e390-4aa0-96ba-3932357af883">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_0adcfafb-49e7-48b5-b37d-5cde2c40db9f"
      id="F_f2766381-3eca-4412-91d7-8bb360a966ee">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0adcfafb-49e7-48b5-b37d-5cde2c40db9f"
      id="F_9aa1f5ab-adcf-4e7c-8e72-eb3facdc4b8a">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0adcfafb-49e7-48b5-b37d-5cde2c40db9f"
      id="F_5b735628-3ff5-4d83-ba5d-2506c01da3a1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0adcfafb-49e7-48b5-b37d-5cde2c40db9f"
      id="F_3f7c9608-86e6-4e1d-bdd4-edf9db96a2ae">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_0adcfafb-49e7-48b5-b37d-5cde2c40db9f"
      id="F_6cd2085a-96b2-4ccc-bfc1-863a1fcb81b1">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_0adcfafb-49e7-48b5-b37d-5cde2c40db9f"
      id="F_96f94fef-b22c-425d-a9a5-cd84900feb6a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_0adcfafb-49e7-48b5-b37d-5cde2c40db9f"
      id="F_d12202de-49b5-473f-8646-acd9277f29ad">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_0adcfafb-49e7-48b5-b37d-5cde2c40db9f"
      id="F_57dbad3c-12be-442a-acf8-58a2f30dbd07">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0adcfafb-49e7-48b5-b37d-5cde2c40db9f"
      id="F_4db6a321-6fde-48b6-8ae6-68fe06be6759">&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,425,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_0adcfafb-49e7-48b5-b37d-5cde2c40db9f"
      decimals="0"
      id="F_92c36125-e948-47b9-8a43-574b8e0771d9"
      unitRef="U_USD">1425000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
