<?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_bbb679a3-fc57-4f29-b697-e5d205630b26">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_bbb679a3-fc57-4f29-b697-e5d205630b26"
      id="F_4b3f2c70-fe45-44ac-aa36-6ab09926cc1a">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_bbb679a3-fc57-4f29-b697-e5d205630b26"
      id="F_32d9d371-2cf5-46b2-9138-9aaf57815a39">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_bbb679a3-fc57-4f29-b697-e5d205630b26"
      id="F_15790409-212e-4f49-b470-17f72d28f57f">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_bbb679a3-fc57-4f29-b697-e5d205630b26"
      id="F_c98de3fd-d2bd-40c0-9f57-a3afa58c09cb">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_bbb679a3-fc57-4f29-b697-e5d205630b26"
      id="F_e9669b79-1a40-4573-9489-4d82ec9132f1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_bbb679a3-fc57-4f29-b697-e5d205630b26"
      id="F_2bb2a712-8e24-4758-b658-d6a74e5dfe89">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bbb679a3-fc57-4f29-b697-e5d205630b26"
      id="F_75769ff9-e1fb-480b-a3a1-96382ea06a92">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_bbb679a3-fc57-4f29-b697-e5d205630b26"
      id="F_a3131023-bb44-4c3d-b6c2-382feb0dab20">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_bbb679a3-fc57-4f29-b697-e5d205630b26"
      id="F_03ab5816-9195-4cf2-aef4-0b105980aa14">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_bbb679a3-fc57-4f29-b697-e5d205630b26"
      id="F_3a9a9ef9-9d9c-4b67-bad9-bd0389dc71f7">&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;2,087,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_bbb679a3-fc57-4f29-b697-e5d205630b26"
      decimals="-3"
      id="F_cddb7650-8944-4410-ad62-e47089d6627d"
      unitRef="U_USD">2087000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
