<?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_bc138677-92ad-448c-b3de-b011dcfe60ba">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_bc138677-92ad-448c-b3de-b011dcfe60ba"
      id="F_294335d9-9f26-4d9a-8138-98990528b269">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_bc138677-92ad-448c-b3de-b011dcfe60ba"
      id="F_e678ac81-91cf-436d-b012-26be0ded8122">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_bc138677-92ad-448c-b3de-b011dcfe60ba"
      id="F_12d3da8b-f9fa-41b9-a687-9d173e9211c4">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_bc138677-92ad-448c-b3de-b011dcfe60ba"
      id="F_8f6210ed-77e4-4169-8b50-c4b4c2d6b77a">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_bc138677-92ad-448c-b3de-b011dcfe60ba"
      id="F_d3e804fb-f28c-42a1-bdb6-49acc8680766">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_bc138677-92ad-448c-b3de-b011dcfe60ba"
      id="F_396d4d1a-8aa2-4079-ae88-e37e52988de0">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_bc138677-92ad-448c-b3de-b011dcfe60ba"
      id="F_bacd48f1-a995-4ce0-a2f7-7ef8fd91d7b9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bc138677-92ad-448c-b3de-b011dcfe60ba"
      id="F_d9ae45ca-2742-47b6-a0aa-a15bb6a50f06">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_bc138677-92ad-448c-b3de-b011dcfe60ba"
      id="F_247b00c5-c919-4b78-83db-c68495cdec1a">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bc138677-92ad-448c-b3de-b011dcfe60ba"
      id="F_8007b40a-456a-40b4-896d-7fdb4f164151">&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,002,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_bc138677-92ad-448c-b3de-b011dcfe60ba"
      decimals="-3"
      id="F_7ff532ee-388d-411e-b836-2492b22b6afe"
      unitRef="U_USD">1002000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
