<?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_85ba61e2-6c0b-4fa9-8c02-b3c4a47c14e7">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-11-02</startDate>
            <endDate>2026-11-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_85ba61e2-6c0b-4fa9-8c02-b3c4a47c14e7"
      id="F_3533c3fc-3084-4c56-8b2c-017898b51562">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_85ba61e2-6c0b-4fa9-8c02-b3c4a47c14e7"
      id="F_4e4b6c96-00d3-4513-8d92-7e1d6d088c22">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_85ba61e2-6c0b-4fa9-8c02-b3c4a47c14e7"
      id="F_997e6c02-5dfa-401b-9361-6033bb1b32a2">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_85ba61e2-6c0b-4fa9-8c02-b3c4a47c14e7"
      id="F_18829818-7d29-40f7-8dea-d15fbdb9d05e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_85ba61e2-6c0b-4fa9-8c02-b3c4a47c14e7"
      id="F_dd9243a1-bde6-45bf-95c7-a4b472bc4023">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_85ba61e2-6c0b-4fa9-8c02-b3c4a47c14e7"
      id="F_e2006684-d38b-42e7-9abb-a24964c5b173">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_85ba61e2-6c0b-4fa9-8c02-b3c4a47c14e7"
      id="F_8bc2c3cc-b47a-47c0-9bbd-e586385f5eb0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_85ba61e2-6c0b-4fa9-8c02-b3c4a47c14e7"
      id="F_8a647b7d-a6d1-425d-8ba6-d7b90abaedbe">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_85ba61e2-6c0b-4fa9-8c02-b3c4a47c14e7"
      id="F_3b702629-6a56-47ce-ad20-6102f1225b32">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_85ba61e2-6c0b-4fa9-8c02-b3c4a47c14e7"
      id="F_a681d91b-e905-4878-8707-6ff3262978fe">&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;500,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_85ba61e2-6c0b-4fa9-8c02-b3c4a47c14e7"
      decimals="-3"
      id="F_9fbe573d-6231-4767-97b0-2a045fe80ce1"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
