<?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_f8aa378a-4e83-4f8c-a1ee-34aea65d9a52">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-22</startDate>
            <endDate>2026-09-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_f8aa378a-4e83-4f8c-a1ee-34aea65d9a52"
      id="F_9d22456c-2292-45cc-8c39-836b8606ed52">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_f8aa378a-4e83-4f8c-a1ee-34aea65d9a52"
      id="F_3fc8382f-6c68-4f31-b5d1-a81e804ef60e">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_f8aa378a-4e83-4f8c-a1ee-34aea65d9a52"
      id="F_224b804d-9687-4c6a-9632-4e19cc1ebb6f">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f8aa378a-4e83-4f8c-a1ee-34aea65d9a52"
      id="F_c3543674-af17-4a1d-86dc-d662cb2eef23">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f8aa378a-4e83-4f8c-a1ee-34aea65d9a52"
      id="F_66729e46-be85-4e39-b904-8144476d9d24">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_f8aa378a-4e83-4f8c-a1ee-34aea65d9a52"
      id="F_bf8875f2-1f5e-403b-a599-4d9a45a74b8c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_f8aa378a-4e83-4f8c-a1ee-34aea65d9a52"
      id="F_cfce9da2-be78-4ec4-8199-794dd201cbe7">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_f8aa378a-4e83-4f8c-a1ee-34aea65d9a52"
      id="F_67c222e5-5b78-463b-8be1-1105cdb345dd">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_f8aa378a-4e83-4f8c-a1ee-34aea65d9a52"
      id="F_62e18f0e-257b-4996-956d-a9caa6c9008a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f8aa378a-4e83-4f8c-a1ee-34aea65d9a52"
      id="F_89f4c1e1-9f5d-42a0-aae4-2ccf8b2998c8">&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;6,887,030&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_f8aa378a-4e83-4f8c-a1ee-34aea65d9a52"
      decimals="0"
      id="F_97aa0baf-80d3-4e37-967f-0dd67643b484"
      unitRef="U_USD">6887030</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
