<?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_91ad8cbe-8da1-4939-814e-751c9e52402f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-16</startDate>
            <endDate>2026-09-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_91ad8cbe-8da1-4939-814e-751c9e52402f"
      id="F_0c85390b-f606-4d80-a56d-3cae06f73c1f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_91ad8cbe-8da1-4939-814e-751c9e52402f"
      id="F_8ec0592c-751c-47f8-97c1-b237c4f863a3">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_91ad8cbe-8da1-4939-814e-751c9e52402f"
      id="F_9ec3117c-6209-41a2-afb1-0a47ec09d572">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_91ad8cbe-8da1-4939-814e-751c9e52402f"
      id="F_608035ca-56e4-4217-b2f8-4efec44bb451">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_91ad8cbe-8da1-4939-814e-751c9e52402f"
      id="F_829a7f76-e0f0-47c3-93ae-f8ccbda6093a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_91ad8cbe-8da1-4939-814e-751c9e52402f"
      id="F_27ecb655-2088-433b-90c7-f39e52e6acd5">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_91ad8cbe-8da1-4939-814e-751c9e52402f"
      id="F_963d07f7-9c69-4064-b08a-c5aeeeb17016">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_91ad8cbe-8da1-4939-814e-751c9e52402f"
      id="F_903093b1-d85a-46a8-9c79-bd8eb2482ed0">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_91ad8cbe-8da1-4939-814e-751c9e52402f"
      id="F_9406f1ea-25d9-483d-884a-237916b5318f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_91ad8cbe-8da1-4939-814e-751c9e52402f"
      id="F_5e604b28-a9a3-40df-bf68-36d6ac07965e">&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,282,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_91ad8cbe-8da1-4939-814e-751c9e52402f"
      decimals="-3"
      id="F_3b7b9750-76f6-4f22-b498-d2c8116435d7"
      unitRef="U_USD">6282000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
