<?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_757bf37c-f6fc-48ed-a7b1-3906defa679f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-13</startDate>
            <endDate>2026-10-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_757bf37c-f6fc-48ed-a7b1-3906defa679f"
      id="F_85736df8-1b68-47aa-b513-47134dd378eb">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_757bf37c-f6fc-48ed-a7b1-3906defa679f"
      id="F_4ee2d631-37da-4f94-ab89-139985f0029b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_757bf37c-f6fc-48ed-a7b1-3906defa679f"
      id="F_f2915806-71dd-441d-85f9-6a0365808405">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_757bf37c-f6fc-48ed-a7b1-3906defa679f"
      id="F_a9c51e1c-1f43-4489-ae80-f4398986c70c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_757bf37c-f6fc-48ed-a7b1-3906defa679f"
      id="F_47464d86-0736-44ce-a7d0-3a3ffbd0b699">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_757bf37c-f6fc-48ed-a7b1-3906defa679f"
      id="F_e65d8324-5c5a-4dbc-93a0-0a73d641279c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_757bf37c-f6fc-48ed-a7b1-3906defa679f"
      id="F_a6305a37-e85c-4296-b5ab-ff7f2a3fae14">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_757bf37c-f6fc-48ed-a7b1-3906defa679f"
      id="F_e2c4bd78-882a-4330-9370-29e9a22237de">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_757bf37c-f6fc-48ed-a7b1-3906defa679f"
      id="F_7759e44d-2552-4d84-a04d-38265a8f8ff8">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_757bf37c-f6fc-48ed-a7b1-3906defa679f"
      id="F_96f9394c-d446-439f-b4d4-88e7c086665d">&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;4,204,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_757bf37c-f6fc-48ed-a7b1-3906defa679f"
      decimals="-3"
      id="F_e150842f-3eb6-459b-b1be-e587aa7b656e"
      unitRef="U_USD">4204000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
