<?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_e85b2855-21d3-4b14-91ec-a38dc58e5db9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-02</startDate>
            <endDate>2026-04-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e85b2855-21d3-4b14-91ec-a38dc58e5db9"
      id="F_6428f0ab-a864-4d33-a564-c4b3e945b1f4">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e85b2855-21d3-4b14-91ec-a38dc58e5db9"
      id="F_7551146c-9894-4b73-87a2-29f99c561ce6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_e85b2855-21d3-4b14-91ec-a38dc58e5db9"
      id="F_34f03730-70c4-4361-8a0d-17eafdbd53a6">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_e85b2855-21d3-4b14-91ec-a38dc58e5db9"
      id="F_67241838-f4e9-4ee2-8777-6cdd0e0bcae6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e85b2855-21d3-4b14-91ec-a38dc58e5db9"
      id="F_8d8e4ecb-679d-43ae-a100-56825f8a76c1">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e85b2855-21d3-4b14-91ec-a38dc58e5db9"
      id="F_20c13fb6-1e71-4d57-a1cb-05e78d891484">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_e85b2855-21d3-4b14-91ec-a38dc58e5db9"
      id="F_2b87a906-2cdb-4ea1-ae6d-502d9e714e81">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_e85b2855-21d3-4b14-91ec-a38dc58e5db9"
      id="F_2a63b7af-80c9-4616-8b21-73701a44ee63">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e85b2855-21d3-4b14-91ec-a38dc58e5db9"
      id="F_316a2931-4704-48f2-8977-2b007b2ac48b">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_e85b2855-21d3-4b14-91ec-a38dc58e5db9"
      id="F_757eda92-e866-4ccc-96f5-285f2925e72c">&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;777,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_e85b2855-21d3-4b14-91ec-a38dc58e5db9"
      decimals="0"
      id="F_e5fda9a6-61f7-4af4-a2c6-16bebbaba6c6"
      unitRef="U_USD">777000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
