<?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_a3ad20a6-e625-4344-b1c4-21e8239a30e4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-03</startDate>
            <endDate>2026-11-03</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_a3ad20a6-e625-4344-b1c4-21e8239a30e4"
      id="F_1b3ac80c-c239-4481-9cb4-c779014d686d">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a3ad20a6-e625-4344-b1c4-21e8239a30e4"
      id="F_1c79613f-1854-4e04-b52c-eeb883b2ad3f">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_a3ad20a6-e625-4344-b1c4-21e8239a30e4"
      id="F_7fbec465-4c6e-4919-9d73-52809ae5c85a">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a3ad20a6-e625-4344-b1c4-21e8239a30e4"
      id="F_5e84f05a-e0c0-4d59-b54c-924cbe7b05f7">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a3ad20a6-e625-4344-b1c4-21e8239a30e4"
      id="F_3d44f94b-d069-4fed-a4c7-7e81c34d168d">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a3ad20a6-e625-4344-b1c4-21e8239a30e4"
      id="F_572f384e-d2a4-4dce-9f0c-ac492445a5c8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a3ad20a6-e625-4344-b1c4-21e8239a30e4"
      id="F_817c6369-33d1-426a-8ba1-9b7b613816e6">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a3ad20a6-e625-4344-b1c4-21e8239a30e4"
      id="F_7209b6c2-4ad5-4ba5-bba2-574542c86100">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_a3ad20a6-e625-4344-b1c4-21e8239a30e4"
      id="F_bb332325-b592-4ae0-970d-1aa7fb04020d">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_a3ad20a6-e625-4344-b1c4-21e8239a30e4"
      id="F_ab9849bf-b7c6-4b32-ab05-e89fd705b2c8">&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;761,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_a3ad20a6-e625-4344-b1c4-21e8239a30e4"
      decimals="-3"
      id="F_bc444988-7457-4bbf-8f35-1b92473674f4"
      unitRef="U_USD">761000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
