<?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_6a937eb3-b25c-4c9e-84ca-c38227a6112d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-08</startDate>
            <endDate>2026-10-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6a937eb3-b25c-4c9e-84ca-c38227a6112d"
      id="F_f361c5e4-a614-4925-9301-29c07b7a9d8f">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6a937eb3-b25c-4c9e-84ca-c38227a6112d"
      id="F_84b18f81-d4b4-4945-bf41-2a7279410fe2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_6a937eb3-b25c-4c9e-84ca-c38227a6112d"
      id="F_34b4aca2-d3b1-483f-b772-0ee9da091825">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_6a937eb3-b25c-4c9e-84ca-c38227a6112d"
      id="F_b9999b8b-3618-4a44-a6c7-e94d9cf1abdc">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_6a937eb3-b25c-4c9e-84ca-c38227a6112d"
      id="F_81dbc994-3387-46e4-97d0-b4ddf0388cb2">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_6a937eb3-b25c-4c9e-84ca-c38227a6112d"
      id="F_3c89412c-4d77-4714-92ff-8ec9a69f2fbc">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_6a937eb3-b25c-4c9e-84ca-c38227a6112d"
      id="F_b05b5ffb-ee57-4d36-bcae-41fb797465ff">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_6a937eb3-b25c-4c9e-84ca-c38227a6112d"
      id="F_aea6302d-3e84-44a9-ae28-17a547d207ce">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_6a937eb3-b25c-4c9e-84ca-c38227a6112d"
      id="F_a75782eb-4e24-49ea-80b8-409debf5fe11">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_6a937eb3-b25c-4c9e-84ca-c38227a6112d"
      id="F_77018a1b-e309-4d25-93ae-576af9efd48e">&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;600,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_6a937eb3-b25c-4c9e-84ca-c38227a6112d"
      decimals="-3"
      id="F_8f08aba3-6a9c-443a-9652-ebd6618902e5"
      unitRef="U_USD">600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
