<?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_482bbe5d-89bc-461f-82fc-1794edf89bb1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-26</startDate>
            <endDate>2026-10-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_482bbe5d-89bc-461f-82fc-1794edf89bb1"
      id="F_ebda726f-b6a6-4645-814c-468b0471102c">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_482bbe5d-89bc-461f-82fc-1794edf89bb1"
      id="F_344c3a86-cf70-4248-a990-f404b9faa0c2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_482bbe5d-89bc-461f-82fc-1794edf89bb1"
      id="F_ebe69923-de3d-46b3-8692-6f577668083a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_482bbe5d-89bc-461f-82fc-1794edf89bb1"
      id="F_c92872ae-7884-47fe-94d9-b9480e286a0b">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_482bbe5d-89bc-461f-82fc-1794edf89bb1"
      id="F_c7fbd18a-b34e-4e4a-8f57-4b79a33d3f55">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_482bbe5d-89bc-461f-82fc-1794edf89bb1"
      id="F_48100226-292d-415a-ad90-f3da96294fe2">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_482bbe5d-89bc-461f-82fc-1794edf89bb1"
      id="F_1a7bc474-3cc1-4e96-856b-03834992003e">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_482bbe5d-89bc-461f-82fc-1794edf89bb1"
      id="F_7cdae0da-8344-4b53-8871-52290e7444b4">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_482bbe5d-89bc-461f-82fc-1794edf89bb1"
      id="F_eaf3fba2-c4c5-4c3b-94a6-333e37db0766">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_482bbe5d-89bc-461f-82fc-1794edf89bb1"
      id="F_9023e7b3-3127-4ab5-bfbf-2d39e98b1f3a">&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;1,295,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_482bbe5d-89bc-461f-82fc-1794edf89bb1"
      decimals="-3"
      id="F_76b1ff2c-e64f-4f40-9273-bf7dad14e4e7"
      unitRef="U_USD">1295000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
