<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_74df3f4a-8271-4eee-af92-8701c475e942">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_74df3f4a-8271-4eee-af92-8701c475e942"
      id="F_d0d97898-09f5-4a40-9ead-cbb61d663eb5">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_74df3f4a-8271-4eee-af92-8701c475e942"
      id="F_b5533ed2-bbc4-424d-bc4f-be51c090080d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_74df3f4a-8271-4eee-af92-8701c475e942"
      id="F_65ce5ae6-e295-4653-a4dd-1719bbb4afe1">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_74df3f4a-8271-4eee-af92-8701c475e942"
      id="F_99c32601-8b6f-4c64-ba40-e07237be4520">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_74df3f4a-8271-4eee-af92-8701c475e942"
      id="F_73db8114-d190-45e2-83f5-444ad6d6f018">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_74df3f4a-8271-4eee-af92-8701c475e942"
      id="F_720d4fef-7bf2-43c5-ac45-4f301755496a">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_74df3f4a-8271-4eee-af92-8701c475e942"
      id="F_7a66ce15-123f-42e6-95f4-3d6ec8e430ea">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_74df3f4a-8271-4eee-af92-8701c475e942"
      id="F_12586ec6-9e91-4532-8208-29e01c3cd18c">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_74df3f4a-8271-4eee-af92-8701c475e942"
      id="F_08106532-d118-45bc-8d4a-91d3e0645d2a">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_74df3f4a-8271-4eee-af92-8701c475e942"
      id="F_d9332765-cf98-44e0-a78b-a43351f4a220">&lt;p style="tab-size:26.66px;font-size:12pt;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;192,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_74df3f4a-8271-4eee-af92-8701c475e942"
      decimals="-3"
      id="F_63a9070a-95b8-4702-a4ff-58315b5716db"
      unitRef="U_USD">192000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
