<?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_51d0e874-e708-4913-bb5b-63469fd3b7a3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-09</startDate>
            <endDate>2026-09-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_51d0e874-e708-4913-bb5b-63469fd3b7a3"
      id="F_906babe4-5916-4f91-a283-83c6bd5cda6f">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_51d0e874-e708-4913-bb5b-63469fd3b7a3"
      id="F_4ae9479a-c598-41a4-8e79-6e677428ff9d">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_51d0e874-e708-4913-bb5b-63469fd3b7a3"
      id="F_8b1bd979-b6ff-4451-887f-55f6c38d8162">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_51d0e874-e708-4913-bb5b-63469fd3b7a3"
      id="F_9e31b7c8-e36c-41e4-810e-8130aa01fb25">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_51d0e874-e708-4913-bb5b-63469fd3b7a3"
      id="F_bcf99857-0205-4cab-9ca8-c6a8207267d4">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_51d0e874-e708-4913-bb5b-63469fd3b7a3"
      id="F_3e31041b-9fba-43a2-8883-a153a10acbec">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_51d0e874-e708-4913-bb5b-63469fd3b7a3"
      id="F_7d4e178d-3aac-41f6-a7da-60ecfee26dd5">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_51d0e874-e708-4913-bb5b-63469fd3b7a3"
      id="F_04cac048-b2e5-4bdd-9ad9-40022ed3f9a0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_51d0e874-e708-4913-bb5b-63469fd3b7a3"
      id="F_77ff3dbd-46c1-4f6e-b047-377fded9756e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_51d0e874-e708-4913-bb5b-63469fd3b7a3"
      id="F_5e122e61-e7ab-42d2-b16a-8cf08ea788b2">&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;274,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_51d0e874-e708-4913-bb5b-63469fd3b7a3"
      decimals="-3"
      id="F_251e95e0-1483-401c-b7f4-d8bfa9a1ed3e"
      unitRef="U_USD">274000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
