<?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_e99fc602-c717-4e42-9bb7-965c4845decd">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-28</startDate>
            <endDate>2026-09-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_e99fc602-c717-4e42-9bb7-965c4845decd"
      id="F_f763e7d2-647c-4a36-af86-ba43183602cd">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_e99fc602-c717-4e42-9bb7-965c4845decd"
      id="F_d641fbd6-2aef-4929-a10b-b24bea282a45">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e99fc602-c717-4e42-9bb7-965c4845decd"
      id="F_0541f33e-e628-411f-a7e6-b6f05b89686d">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_e99fc602-c717-4e42-9bb7-965c4845decd"
      id="F_6ccb53bc-73c7-4b11-9184-3458553478ba">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_e99fc602-c717-4e42-9bb7-965c4845decd"
      id="F_955de755-bfb5-424c-a65c-2a5993b451c3">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_e99fc602-c717-4e42-9bb7-965c4845decd"
      id="F_fc36ec5b-673e-4680-9397-9fea3ec7af35">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_e99fc602-c717-4e42-9bb7-965c4845decd"
      id="F_0ea59903-8680-4789-9c1f-ada0106d901a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e99fc602-c717-4e42-9bb7-965c4845decd"
      id="F_ceb292e6-eb61-46be-aa12-3cfc29d368f1">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e99fc602-c717-4e42-9bb7-965c4845decd"
      id="F_832f681d-e507-4e43-85c8-e2dc1165f5ff">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e99fc602-c717-4e42-9bb7-965c4845decd"
      id="F_cf6f856d-57ee-4239-90c6-6278703c1f1b">&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,000,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_e99fc602-c717-4e42-9bb7-965c4845decd"
      decimals="-6"
      id="F_eed25691-50bc-4d54-880e-63a443b4771d"
      unitRef="U_USD">2000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
