<?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_1eb3a4c0-54c3-4c46-99c2-795cf9593597">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-17</startDate>
            <endDate>2026-04-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_1eb3a4c0-54c3-4c46-99c2-795cf9593597"
      id="F_40cf1b73-6046-4507-ba79-e0faefd0466c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_1eb3a4c0-54c3-4c46-99c2-795cf9593597"
      id="F_c323cfea-9845-4066-b110-e087fb1a1a54">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_1eb3a4c0-54c3-4c46-99c2-795cf9593597"
      id="F_cd8bdc54-b5ef-44f2-8ffc-e2ee2467e653">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_1eb3a4c0-54c3-4c46-99c2-795cf9593597"
      id="F_7352cf83-e6de-473a-bd78-5dc6c6db1ea5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_1eb3a4c0-54c3-4c46-99c2-795cf9593597"
      id="F_26d96ac3-afc8-4667-b0fb-4c9740451f3c">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1eb3a4c0-54c3-4c46-99c2-795cf9593597"
      id="F_74c841e6-3466-45aa-9d95-bda40359da59">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1eb3a4c0-54c3-4c46-99c2-795cf9593597"
      id="F_8a2e044a-be9d-4a3d-b88d-8da6d6303c13">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_1eb3a4c0-54c3-4c46-99c2-795cf9593597"
      id="F_123d4140-0abd-4003-a9b6-120ec6b991bd">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_1eb3a4c0-54c3-4c46-99c2-795cf9593597"
      id="F_ebf7df2a-3e31-4030-990b-ab1566c9072b">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1eb3a4c0-54c3-4c46-99c2-795cf9593597"
      id="F_e24aacd0-de0e-42f9-bd20-90dc9ef79734">&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,092,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_1eb3a4c0-54c3-4c46-99c2-795cf9593597"
      decimals="0"
      id="F_e2ba6460-97cd-4c7d-a465-4d88aed65901"
      unitRef="U_USD">1092000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
