<?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_0da73b6a-2ee7-42ef-914e-b54f51afd8a9">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_0da73b6a-2ee7-42ef-914e-b54f51afd8a9"
      id="F_4f98ccc2-d161-43db-b2be-abded391db41">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_0da73b6a-2ee7-42ef-914e-b54f51afd8a9"
      id="F_deae43b8-8876-48c8-a799-26319e795710">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0da73b6a-2ee7-42ef-914e-b54f51afd8a9"
      id="F_16169676-42f0-4f88-8358-21afdc3eae23">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0da73b6a-2ee7-42ef-914e-b54f51afd8a9"
      id="F_f06fd348-4cc6-4de1-ba72-67de0aae8630">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_0da73b6a-2ee7-42ef-914e-b54f51afd8a9"
      id="F_5732c2c8-ffdc-49ed-8f4b-c435dad2f6f6">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_0da73b6a-2ee7-42ef-914e-b54f51afd8a9"
      id="F_98ac61f3-a3b0-470e-b412-4bb6b0348a45">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_0da73b6a-2ee7-42ef-914e-b54f51afd8a9"
      id="F_855e1f71-999a-486b-8d0a-5e4c1f1e0950">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_0da73b6a-2ee7-42ef-914e-b54f51afd8a9"
      id="F_a121ed95-3318-4b2f-bd23-da271b6d0b0c">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0da73b6a-2ee7-42ef-914e-b54f51afd8a9"
      id="F_5243815f-44fd-4d30-b499-7c13631dcebe">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0da73b6a-2ee7-42ef-914e-b54f51afd8a9"
      id="F_9742f2a8-bc49-4bb3-b7e7-2426e8fab3ca">&lt;p style="font-size:10pt;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;891,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_0da73b6a-2ee7-42ef-914e-b54f51afd8a9"
      decimals="-3"
      id="F_1d571825-ca77-435b-977e-70ce249db419"
      unitRef="U_USD">891000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
